Material-calendarview: How to set special dates' text color?

Created on 17 Jan 2018  路  3Comments  路  Source: prolificinteractive/material-calendarview

now I had a recommand that i need set the different textcolor on many special dates,but i can't find the method to solve it
image

Most helpful comment

first you need to create decorator class than use this method calendar.addDecorators(new MySelectorDecorator(MainActivity.activity)); which date you want or https://github.com/prolificinteractive/material-calendarview/blob/master/docs/CUSTOM_SELECTORS.md read this documentation i solved first way but this one is usefull

All 3 comments

first you need to create decorator class than use this method calendar.addDecorators(new MySelectorDecorator(MainActivity.activity)); which date you want or https://github.com/prolificinteractive/material-calendarview/blob/master/docs/CUSTOM_SELECTORS.md read this documentation i solved first way but this one is usefull

thanks for your help,but if i use the method it will change all text color,would you please give me a demo?thanks!!

I've solve this problem,while use the decorate class,add below code:
view.addSpan(new ForegroundColorSpan(Color.BLUE));
@enderkoca thanks for your answer,it is very useful for me!

Was this page helpful?
0 / 5 - 0 ratings