Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android TimePicker custom minute step

Tags:

android

The default Android Time Picker, have a step of 1 for minute. I want to change it to a step of 5 minutes. so by clicking on the "+" button, the time 09:20 become 09:25.

Is there an easy way to do it ?

like image 312
Thomas Besnehard Avatar asked Apr 01 '26 11:04

Thomas Besnehard


1 Answers

You have to write your own TimePicker. I'm not sure if you can extend the existing TimePicker and handle the button events on your own. Here is more detailed answer for your question:

Android - TimePicker minutes to 15

like image 148
Marcin S. Avatar answered Apr 03 '26 03:04

Marcin S.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!