如何在Android datepicker中禁用某些特定日期?

时间:2015-06-25 07:51:02

标签: java android json sqlite datepicker

我有一个日期选择器,可以禁用过去的日期。例如,对于我的应用程序,用户必须只能选择特定日期。必须禁用其他日期以供选择。我不想在选择后验证。

1 个答案:

答案 0 :(得分:0)

It's not possible, the best we could do is set Max and Min date for the date picker... Or maybe you could create your own custom date picker to enable this.(Using NumberPicker for example)