Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to remove AM/PM button from TimePicker?

I want to show 24 hours clock instead 12 hours using TimePicker,and I dont need the AM/PM buton, Simply want to show 24 hours clock.

Is this possible?

I used setIs24HourView(true) but it is is not working.

Suggest me How can I show 24 hours clock?

like image 731
NullPointerException Avatar asked Nov 10 '10 17:11

NullPointerException


1 Answers

Have you tried setting setIs24HourView?

If you just need use the NumberPicker widget in other abnormal ways:

There is a NumberPicker widget in Android, but it is a private API. This guy pulled out the code such that you can drop it into any project.

Here is an example of how I used it for tax rates:

alt text

like image 88
Bryan Denny Avatar answered Oct 11 '22 15:10

Bryan Denny