prolificinteractive / material-calendarview

A Material design back port of Android's CalendarView
https://prolificinteractive.github.io/material-calendarview/
MIT License
5.92k stars 1.32k forks source link

SpannableString for Days #927

Open jamminuesa opened 5 years ago

jamminuesa commented 5 years ago

Hello

Let me first thank you for this amazing library.

I am making an app to manage expenses I want to display how much has the user spend each day. As a workaround, I have made a DayFormatter and concatenate the day and the corresponding amount. My problem is that I would like to give some style (to beginning with italics but in the future some colors depending on the amount would be great) to the amount part. I could use SpannableString but I can't because DayFormatter return a String (WeekFormatter uses CharSequence). I have also seen that this should be done with a DayViewDecorator but this way both the day and the amount are modified. Do you know other way to do this? Thank you so much for your time

John