gpt4 book ai didi

android - Android 应用程序中的日历以选择月份和年份

转载 作者:行者123 更新时间:2023-11-29 01:36:59 26 4
gpt4 key购买 nike

我想要一个允许用户只选择月份和年份的日历。是否有任何第 3 方小部件可以让我这样做?我知道日期 slider ( http://i.stack.imgur.com/BDFls.png ) 允许我创建一个对话框,用户可以在其中选择月份和年份,但是有没有类似于我在下面发布的小部件?还是我必须自己创建这个?

enter image description here

最佳答案

我会推荐 CalDroid .它具有自定义选项,可让您创建所需的效果。

编辑:阅读项目 GitHub 上的文档:

Caldroid fragment includes 4 main parts:

1) Month title view: show the month and year (e.g MARCH, 2013)

2) Navigation arrows: to navigate to next month or previous month

3) Weekday gridview: contains only 1 row and 7 columns. To display "SUN, MON, TUE, WED, THU, FRI, SAT"

4) An infinite view pager that allow user to swipe left/right to change month. This library is taken from https://github.com/antonyt/InfiniteViewPager

数字 (1) 似乎是您需要的。

关于android - Android 应用程序中的日历以选择月份和年份,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27358662/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com