Is there any android widget that enable to pick the date and the time at the same time ? I already use the basic time picker and date picker.
But they are not that sexy and user friendly (I found). Do you know if a widget including both date and time exists? Thanks a lot, Luc
The URLs you link to show how to pop up a dialog with a time picker and another dialog with a date picker. However you need to be aware that you can use those UI widgets directly in your own layout. You could build your own dialog that includes both a TimePicker and DatePicker in the same view, thus accomplishing what I think you are looking for.
In other words, instead of using TimePickerDialog and DatePickerDialog, just use the UI widgets
TimePickerandDatePickerdirectly in your own dialog or activity.I also wanted to combine a DatePicker and a TimePicker. So I create an API to handle both in one interface! :)
https://github.com/Kunzisoft/Android-SwitchDateTimePicker
You can also use SublimePicker
I created a library to do this. It also has customizable colors!
It's very simple to use.
First you create a listener:
Then you create and show the dialog:
I hope you find it useful.
I was facing the same problem in one of my projects and have decided to make a custom widget that has both the date and the time picker in one user-friendly dialog. You can get the source code along with an example at http://code.google.com/p/datetimepicker/. The code is licensed under Apache 2.0.
I have create a alert dialog which combine Date picker and Time picker. You can get code at https://github.com/nguyentoantuit/android Note: DateTimePicker is a library
I wrote up a little widget that allows you to pick both date and time.
DateTimeWidget