Android: timepicker and datepicker in the same dialog

I am developing an Android application. I created timepickerdialog and datepickerdialog, but the problem is that they both work in different dialogs, which is not the way I want my application to work: -S Is there a way to create a single dialog with time and date dialogs?

thank

+5
source share
3 answers

Here you can find the implementation of DateTimePicker:

http://code.google.com/p/datetimepicker/

+17
source

, Google. ImageView TextView DatePicker TimePicker. :

View layout = inflater.inflate(R.layout.custom_dialog,
                           (ViewGroup) findViewById(R.id.layout_root));

:

View layout = inflater.inflate(R.layout.dialog_date_time, 
                           (ViewGroup) findViewById(R.id.datePicker));

- , . , .

+2

, , , . : Android

0

All Articles