问题
I wanted to know whether we can implement both date and time picker in one view...
In our iPhone app you can pick both date and time through one view. But in Android we have date picker and time picker used separately. Is there any method by which I can get values of both date and time from one view?
回答1:
There is no built in widget that implements both a date and time picker. However, you can create your own custom view for that, perhaps combining the existing DatePicker
and TimePicker
.
来源:https://stackoverflow.com/questions/2577606/date-and-time-picker-in-one-view