Detailed use examples of Android date and time
•
Android
Android date and time usage
Use of date and time;
1: Pop up boxes timepickerdialog, DatePickerDialog
2: Component TimePicker, datepicker
Use of timepickerdialog: click the button to display figure 1, and then the user can set the time
To use DatePickerDialog, you only need to modify timepickerdialog to DatePickerDialog, timepickerdialog.ontimesetlistener to DatePickerDialog and ondatesetlistener respectively
Code of DatePickerDialog:
Thank you for reading, hope to help you, thank you for your support to this site!
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码