1
我想停用点击当月不在当前周日期的日期。我使用caldroid日历请帮助我谢谢你!如何禁用点击日期
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
当我尝试过,它会禁用日期,但不是我想要的日期。你能给我一些建议吗?我该如何禁用不在当前月份的日期?谢谢。 – 2014-10-22 13:22:36
对不起。只需设置白色背景即可在适配器中查看。例如:在CaldroidGridAdapter中查看customizeTextView函数。 (dateTime.getMonth()!= month){cellView.setTextColor(resources.getColor(R.color.caldroid_darker_gray));这里你应该设置Background并将其替换为函数的结尾: if(dateTime.getMonth } – QArea 2014-10-23 11:01:01
Thankyou它的工作原理。 :) – 2014-10-24 01:05:11