如何使用其他日历系统提供DatePicker小部件? [英] How to feed DatePicker widget with other calendar sytems?
问题描述
有没有使用 DatePicker
小部件与其他日历系统?
Is there anyway to use DatePicker
widget with other calendar systems ?
我需要一个选择器 Jalali
(波斯语)日历系统,但我不知道如何使用我的数据提交 DatePicker
。
I need a picker for Jalali
(Persian) Calendar system, but i dont know how to feed DatePicker
with my data.
我研究了与 DatePicker
相关的方法,但找不到任何允许我这样做的东西。
I've studied methods related to DatePicker
but couldn't find anything that allows me to do that.
我还发现一个名为 android-wheel 的自定义小部件,它是一个 iOS风格的
小部件,不感兴趣,但它允许我实现这一点。
I also found a custom widget called android-wheel, its a iOS-styled
widget and does not feel native, but it allows me to implement this.
所以是有没有一个本地化的DatePicker
小部件,允许我选择日期 Jalali
日历系统,并有月份名称 persian ?
so is there anyway to have a native-looking DatePicker
widget that allows me to pick date for Jalali
Calendar system and have month names in persian ?
更新:我以前回答了我的问题,解决了这个问题,但是href =http://stackoverflow.com/users/3490833/mohamad-amin> @Mo hamad Amin 为此创建了一个伟大的图书馆,我强烈建议您使用他的图书馆(Thanks Mohamad Amin)。
UPDATE: I've previously answered my question and it solves the problem, But @Mohamad Amin has created a great library for that, and i strongly advise you to use his library (Thanks Mohamad Amin).
推荐答案
最近,我创建了一个新的库波斯语( Hijri / Shamsi )日期选择器,它的设计是基于材料设计选择器。
您可以在 库的github页面中获取更多信息>。
Recently, I created a new library that has a Persian (Hijri/Shamsi) Date Picker and it's design is based on Material Design Pickers. You can get more information in the library's github page.
来自DatePickerDialog的屏幕截图:
A screenshot from the DatePickerDialog :
这篇关于如何使用其他日历系统提供DatePicker小部件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!