N
N
newdancer2016-10-06 14:55:03
Android
newdancer, 2016-10-06 14:55:03

How in TimePicker to implement the gradation of selecting minutes by 5 minutes?

How in TimePicker to implement the gradation of selecting minutes by 5 minutes?
74e9b0dfe3944395bac796c1c3761751.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Skogorev, 2016-10-06
@EnterSandman

$('#stepExample1').timepicker({ 'step': 15 });

N
newdancer, 2016-10-06
@newdancer

here is a piece of calling code:

TimePickerDialog timePickerDialog = new TimePickerDialog(getActivity(),
                        new TimePickerDialog.OnTimeSetListener() {
                            @Override
                            public void onTimeSet(TimePicker timePicker, int hour, int min) {
                                updateCalendar();
                            }
                        },
                        getHour(),
                        getMinute(),
                        true);
                timePickerDialog.show();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question