How To Show Dialog To Pick Date And Time Togather?
i am using following code to show date picker in android DatePickerDialog dial= new DatePickerDialog(this.getContext(),0,mDateSetListener,thisYear,thisMonth,thisDay); d
Solution 1:
Step #1: Create a dialog (e.g., use AlertDialog.Builder
).
Step #2: Put a DatePicker
and a TimePicker
in the dialog (e.g., setView()
on AlertDialog.Builder
).
Note that this may not work well on small screens, since DatePicker
and TimePicker
are each large -- there may not be enough room for both and the dialog buttons and such.
Solution 2:
As said you can create a dialog with both in however on most screens it will look poor due to the size of them. You could recreate your own making it smaller (it's not that hard) or reflow your app and have them on separate pop-ups
Post a Comment for "How To Show Dialog To Pick Date And Time Togather?"