TimePicker in 24h format

1

I'm thinking of using TimePicker in my news app and to determine the timing of notifications I'm using calender but the TimePicker schedule and from 0 to 12 a.m. and 0 to 12 p.m. and the calender of the 24 hour cycle if someone You can not think of a solution for this.

    
asked by anonymous 08.06.2018 / 01:43

1 answer

0

The TimePicker can display the value in both 24h and AM / PM format.

The format is defined using the setIs24HourView () .

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

timePicker.setIs24HourView(true);
    
08.06.2018 / 11:29