像日期/时间选择器的android系统的ios [英] ios like date/time picker for android platform

查看:106
本文介绍了像日期/时间选择器的android系统的ios的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用本地ios / android代码为ios和android平台构建移动应用程序。我希望应用看起来相似。因此,我需要android中可用的ios样式选择器(用于日期和时间选择)。我花了一半的时间,但找不到任何合适的变体。如果您提出一些建议,将会感到非常高兴。我认为应该有所不同,因为我看到了几个android应用,它们的选择器与ios上的显示相同(例如,anydo)。

I'm building mobile app for both ios and android platform using native ios/android code. And I want apps looks similar. So I need ios style picker (for date and time selection) available in android. I spend half of the day but don't find any sutable variant. Will be more than happy if you suggest something. I think there should be variants, because I saw several android apps where picker looks the same as on ios (anydo for example).

我已经检查过的内容:


  1. android-spinnerwheel (已废弃,使用不方便,需要从其组件中构建实际的选择器,因此需要很多代码)

  1. android-spinnerwheel (abandoned, not sutable for using, require build actual picker from it's componet, so quite a lot of code)

wheelpicker (质量不清楚,区域标准/日期时间常量已硬编码在代码中,并且通常难以自定义,但是它是进行分叉和修复的候选对象确定是否不支持am-pm / 24h UI切换)

wheelpicker (quality unclear, regional standards/datetime constants hardcoded in code and in general control hard to customize, however it's candidate for forking and fixing things manually. For sure it's not supporting am-pm/24h UI switching)

PickView (无布局,实现为对话框,自定义功能较差)

PickView (no layout, implemented as dialog, poore customization abilities)

CharacterPickerView (不要使用默认布局设置,在不固定源代码,硬编码值,GPL许可证的情况下很难自定义)

CharacterPickerView (do not use default layout settings, hard to customize without fixing sources, hardcoded values, GPL license)

PS如果存在的话,我会强制支付。

P.S. I will cosinder payed variants if they exists.

经过调查,我们最终基于方向盘

After investigation we ended up with custom controls build based on wheelpicker

推荐答案

您可以在Android中使用滚轮效果,代码如下:

You can Use wheel type effect in android here is code:

https:/ /github.com/ayushhgoyal/AyushWheel/

希望这会有所帮助!干杯!

Hope this will Help ! Cheers !

这篇关于像日期/时间选择器的android系统的ios的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆