material-calendarview
material-calendarview copied to clipboard
Is it possible to replace the Dotspan with an icon, if so how?
I tried to replace the "view.addSpan (new DotSpan (5, color));" of "decorate(DayViewFacade view)" by
Drawable image = getResources().getDrawable(R.drawable.round_warning_24);
view.addSpan(new ImageSpan(image));
but I have an error with getRessources(). Before going on research for two more days I would like to be sure that this is even possible. If so, if by chance you could tell me how it would be very nice.
decorate method has a view param, can getting context from that view help ?
Any luck with this? I am looking for a similar solution.
Have you solved this problem? I want to know If you follow the above method, it seems to be wrong because it overlaps the text of the calendar.