如何仅显示月份和年份字段的 android 日期选择器? [英] How to display date picker for android with only month and year fields?

查看:32
本文介绍了如何仅显示月份和年份字段的 android 日期选择器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 android sdk 日期选择器上禁用日期选择选项.任何简单的 xml 配置都是最好的

i want to disable the day selection option on the android sdk date picker. any easy xml configuration would be the best

推荐答案

我刚刚发布了一个新的日期选择器框架,它允许您创建自定义日期选择器.我还提供了一些示例日期选择器,例如您正在寻找的那个.希望它对你有用.

I just have released a new date picker framework which allows you to create custom date picker. I also provided some example date pickers like the one you are looking for. Hope, that it works for you.

代码可以在这里找到:https://github.com/bendemboski/DateSlider

更新 06/2014:该库于 2010 年开发,自 2011 年以来一直无人维护.因此它现在很可能已经过时.

UPDATE 06/2014: This library was developed 2010 and has been unmaintained since 2011. So it is most likely out of date by now.

这篇关于如何仅显示月份和年份字段的 android 日期选择器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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