material-calendarview icon indicating copy to clipboard operation
material-calendarview copied to clipboard

Is it possible to replace the Dotspan with an icon, if so how?

Open Moh09 opened this issue 5 years ago • 3 comments

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.

Moh09 avatar Jun 30 '19 08:06 Moh09

decorate method has a view param, can getting context from that view help ?

ashish-dhiman avatar Jul 05 '19 11:07 ashish-dhiman

Any luck with this? I am looking for a similar solution.

kay14 avatar Jun 17 '20 17:06 kay14

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.

dranent avatar Apr 04 '21 09:04 dranent