Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when NumberPadTimePickerDialog is 12 hour, how input 0:30 #15

Open
conghuahuadan opened this issue Feb 15, 2017 · 6 comments
Open

when NumberPadTimePickerDialog is 12 hour, how input 0:30 #15

conghuahuadan opened this issue Feb 15, 2017 · 6 comments

Comments

@conghuahuadan
Copy link

image

@philliphsu
Copy link
Owner

That is 12:30 AM.

@conghuahuadan
Copy link
Author

i want set NumberPadTimePickerDialog is 24 hour, but is invalid

code

image

@philliphsu
Copy link
Owner

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.

@conghuahuadan
Copy link
Author

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

@philliphsu
Copy link
Owner

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.

@conghuahuadan
Copy link
Author

conghuahuadan commented Feb 16, 2017

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

want TimePicker can add more styles (^_^)

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants