MicrowaveTimePicker Brings 4.2 TimePicker to 2.1+ Devices
It’s frustrating to see slick new features that you can’t use when supporting devices with older versions of Android. Sometimes Android adds in support for a few previous versions, like when the ActionBar was added. But other times, you’re just going to have to do it yourself. That’s what XDA Senior Member icechen1 did to make the slick looking TimePicker from Android 4.2 work with devices as old as 2.1 (Eclair).
He’s calling it MicrowaveTimePicker, which is a great descriptor. These screenshots show that the button layout and time display is exactly what you’d expect to see on the control panel of a microwave oven. That familiar look is what great interfaces are made of, as most users will immediately feel at home typing in the the time setting.
The library is available from his GitHub repository. The readme file documents how easy it is to start using it. Add the Class as an item in your preference menu xml, and it’ll launch like an Activity. There is also the option of displaying the interface programmatically as a dialog.
You can find links to other 4.2-like pickers in the comments of the Reddit thread. Icechen1 many have duplicated some work by building up his own library, but it can’t hurt for the rest of us to have several to choose from.
Want more posts like this delivered to your inbox? Enter your email to be subscribed to our newsletter.