Search code examples
androidandroid-viewandroid-themeandroid-stylesandroid-timepicker

How can i change Timpicker Style wheel?


How can I change Timepicker Style to whee?

When I make Timepicker in my layout

like this

http://d339vfjsz5zott.cloudfront.net/123_Java_Android-Date-And-Time/TimePickerDialog.png

but I want this style

https://i.sstatic.net/iO3Gs.png

i know that is default style. I don't know how I can change the timepicker style

what can I do?


Solution

  • That is because you use old api (lower than ICS 4.0). To use the new styled TimePicker import SimonVT's TimePicker library. It has exactly the same style, that android > 4.0 TimerPicker has. It can be used starting from Android 2.1.