作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用更好的选择器库 ( here's the link ) 在我的应用程序中选择日期。我想对选择器设置限制,使最大日期是今天的日期,最小日期不超过一年前。这是我显示 CalendarDatePickerDialogFragment 对话框的代码;
private void showDateDialog() {
FragmentManager fm = getSupportFragmentManager();
DateTime now = DateTime.now();
CalendarDatePickerDialogFragment calendarDatePickerDialogFragment = CalendarDatePickerDialogFragment
.newInstance(this, now.getYear(), now.getMonthOfYear() - 1,
now.getDayOfMonth());
calendarDatePickerDialogFragment.show(fm, FRAG_TAG_DATE_PICKER);
}
最佳答案
关于java - 将日期限制设置为 CalendarDatePickerDialogFragment android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34978965/
我正在使用更好的选择器库 ( here's the link ) 在我的应用程序中选择日期。我想对选择器设置限制,使最大日期是今天的日期,最小日期不超过一年前。这是我显示 CalendarDatePi
我是一名优秀的程序员,十分优秀!