Android TimePicker direct input problem solution
•
Android
Android TimePicker direct input problem solution
TimePicker provides up and down buttons. Click the button, and the relevant operations are normal. However, if you directly modify the hour or minute in the input box and directly click the button to get the value, you will find that the time cannot be really changed.
The following code did not get the expected results.
The log displays the time before direct input, not the time entered directly.
Solution:
In int i = timepicker1. Getcurrenthour(); Before you call the following:
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
二维码