Usage example of date and time setting control in Android
•
Android
This article describes the usage of date and time setting control in Android. Share with you for your reference. The details are as follows:
1. Date setting control: DatePickerDialog
2. Time setting control: timepickerdialog
Example code:
Add two buttons to the page. Click to display the date setting control and time setting control respectively, or there is a textview control to display the system time after setting
main.xml:
Chronodemo.java is as follows:
I hope this article will be helpful to your Android program design.
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
二维码