问题描述
我正在尝试编写一个将在Android中使用时间选择器的应用程序,但我真的很想从iOS中实现该应用程序.
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.
我的问题是时间选择器是用于时间的,但是我想将mine用于三个可以选择的不同数字值(无am/pm),因此它看起来像选择器是必经之路,只是它们是在API 11中引入的.
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.
我还找到了 android-wheel ,但我没有不知道如何获取来源.有人可以引导我朝正确的方向前进吗?
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?
iOS时间选择器如下所示:
The iOS timepicker looks like this:
Android轮看起来像这样:
Android wheel looks like this:
但是,我还无法弄清楚如何获取它的代码.
But, I haven't been able to figure out how to get the code for it.
推荐答案
我能够通过svn乌龟使用android wheel代码.
I was able to use the android wheel code through svn tortoise.
这篇关于在Android中复制iOS时间选择器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!