Zen
Zen

Reputation: 2728

Android Hide TimePicker numbers?

Is there a way to hide these numbers? Im guessing there must be an attribute which once set to 'false' should to it.

Also, i've tried to use custom drawables for the the up/down arrow, but those seem to overlay on top of the numbers (ie,the numbers are still visible)

Note: I could make custom pickers where I use a textView in between two imageViews, but the default timePicker allows one to swipe up and scroll through numbers (so would prefer using the default)

Edit: Apparently the NumberPicker has different children in different versions of android(the emulator shows the up/bottom arrows, while on my Samsung Tab they return a nullpointerexception). Wow!

Hide these Numbers

Upvotes: 2

Views: 995

Answers (2)

CommonsWare
CommonsWare

Reputation: 1006819

Is there a way to hide these numbers?

No, sorry.

Im guessing there must be an attribute which once set to 'false' should to it.

Only if you fork TimePicker and add such an attribute yourself.

Upvotes: 1

adam2510
adam2510

Reputation: 563

Instead of using a time picker you could try and use a number picker instead, this means that you can specifically set what you want to be in the picker.

Upvotes: 2

Related Questions