Sorry for bad English. I'd like to set a different color for the event when user click it. But when I click it, it doesn't change. the event only change color after I scroll screen(not when i click it). I don't know why. I hope you can understand this.
@Override
public void onEventClick(WeekViewEvent event, RectF eventRect) {
if (event.getColor()!=R.color.mediumorchid){
event.getStartTime();
event.setColor(R.color.mediumorchid);
}else {
event.setColor(0);
}
}
Sorry for bad English. I'd like to set a different color for the event when user click it. But when I click it, it doesn't change. the event only change color after I scroll screen(not when i click it). I don't know why. I hope you can understand this.
@Override public void onEventClick(WeekViewEvent event, RectF eventRect) { if (event.getColor()!=R.color.mediumorchid){ event.getStartTime(); event.setColor(R.color.mediumorchid); }else { event.setColor(0); } }