How can i change cell color?
marcosgarciagarcia202 opened this issue · comments
I want to change the cell color like this:
ColorDrawable green = new ColorDrawable(Color.GREEN);
for (Entrenamiento e : temporada.getEntrenamientos()) {
caldroidFragment.setBackgroundDrawableForDate(green, e.getFecha());
}
caldroidFragment.refreshView();
But it does nothing for me.
How can i change it?
Thanks
@amorenew
this is only an image. but how can i do it?
i do that:
caldroidFragment.setBackgroundDrawableForDate(new ColorDrawable(Color.GREEN), e.getFecha());
caldroidFragment.refreshView();
but does not work for me.
for only cells
check these two files
https://github.com/amorenew/Caldroid/blob/master/caldroid/src/main/res/drawable/cell_bg.xml
and cellView.addCustomState in
https://github.com/amorenew/Caldroid/blob/master/caldroid/src/main/java/com/roomorama/caldroid/CaldroidGridAdapter.java