如何禁用日期点击 [英] How to disable click on dates
本文介绍了如何禁用日期点击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在不在该月的currentweekdays日期禁用点击。即时通讯使用的caldroid日历请帮我三江源!
I want to disable click on the dates that are not in the currentweekdays of the month. Im using the caldroid calendar please help me thankyou!
final CaldroidListener listenerq = new CaldroidListener() {
@Override
public void onSelectDate(Date date, View view) {
//Here all dates is being selected.
//I only want to enable click for the currentweekdays of the month.
}
请参见下图。
http://i.stack.imgur.com/yCjzY.png
推荐答案
请参阅此 https://github.com/如美家/ Caldroid
为什么你不使用这个code?
Why you don't use this code?
public void setDisableDates(ArrayList<Date> disableDateList);
public void setDisableDatesFromString(ArrayList<String> disableDateStrings);
public void setDisableDatesFromString(ArrayList<String> disableDateStrings, String dateFormat);
这篇关于如何禁用日期点击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文