Replicating the iOS time picker in Android

2019-06-13 00:26发布

I'm trying to write an app that would use the timepicker in Android, but I really would like to implement the one from iOS.

I've had a couple of leads, but haven't struck anything that has worked for me.

My problem is that the time picker is for time but I want to use mine for three different number values that can be chosen (no am/pm) so it seems like Pickers are the way to go, except that they were introduced in API 11.

I've found this blog that seems to give you some code for it, but I wasn't able to get it to work.

I also found android-wheel, but I don't know how to get the source for it. Can anyone steer me in the right direction for it?

The iOS timepicker looks like this:

enter image description here

Android wheel looks like this:

enter image description here

But, I haven't been able to figure out how to get the code for it.

3条回答
一纸荒年 Trace。
2楼-- · 2019-06-13 00:46

The code is in the google code project - https://code.google.com/p/android-wheel/source/browse/

查看更多
叼着烟拽天下
3楼-- · 2019-06-13 00:58

I was able to use the android wheel code through svn tortoise.

查看更多
唯我独甜
4楼-- · 2019-06-13 01:00

Download the source code from below link for various wheel example:

http://android-wheel.googlecode.com/svn/trunk/

Make sure that you have the svn plugins for download.

Thanks.

查看更多
登录 后发表回答