BottomSheetPickers icon indicating copy to clipboard operation
BottomSheetPickers copied to clipboard

when NumberPadTimePickerDialog is 12 hour, how input 0:30

Open conghuahuadan opened this issue 7 years ago • 6 comments

image

conghuahuadan avatar Feb 15 '17 02:02 conghuahuadan

That is 12:30 AM.

philliphsu avatar Feb 15 '17 02:02 philliphsu

i want set NumberPadTimePickerDialog is 24 hour, but is invalid

code

image

conghuahuadan avatar Feb 15 '17 03:02 conghuahuadan

The number pad automatically uses 12 or 24 hour mode depending on your system's preference for 24-hour time. You can find this setting in Settings > Date & time > Use 24-hour format.

philliphsu avatar Feb 15 '17 05:02 philliphsu

but i want number pad uses 24 hour mode depending on my code settings, not depending on your system's preference for 24-hour time, how can i do?

i set mIs24HourMode to true, but all is invalid, how can i do?

image

image

image

image

conghuahuadan avatar Feb 15 '17 06:02 conghuahuadan

This feature is not currently supported, which is why the newInstance() you're trying to modify was originally private access. If you want to do this yourself, you should look into modifying NumberPadTimePicker.java.

philliphsu avatar Feb 15 '17 18:02 philliphsu

thanks, i success modify NumberPadTimePickerDialog is 24 hour mode in NumberPadTimePicker.java.

want TimePicker can add more styles (^_^)

image

image

conghuahuadan avatar Feb 16 '17 01:02 conghuahuadan