Timepicker in 24h format

Asked

Viewed 45 times

1

I’m thinking of using Timepicker in my news app and to determine the time of the notifications I’m using calender however the time of the Timepicker and from 0 to 12 am and 0 to 12 pm and the calender of the 24 h cycle if anyone can think of a solution for this

1 answer

0


The Timepicker can present the value in both 24h format and AM/PM.

The format is defined using the method setIs24HourView().

To set the format in 24h use it by passing true:

timePicker.setIs24HourView(true);

Browser other questions tagged

You are not signed in. Login or sign up in order to post.