Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to customize some colors #39

Open
MegaDedh opened this issue Mar 9, 2020 · 2 comments
Open

Impossible to customize some colors #39

MegaDedh opened this issue Mar 9, 2020 · 2 comments

Comments

@MegaDedh
Copy link

MegaDedh commented Mar 9, 2020

Hello!
Why impossible to customize colors:
"calendar_date_selected_background"
and probably "calendar_date_today_text_color"
Hardcoded light blue color not suitable for some color themes.
I don’t understand how to change it.

@Limanskaya
Copy link
Contributor

@MegaDedh Hi!
You can customize the calendar style including calendar_date_selected_background and calendar_date_today_text_color.

Please, look at the sample of usage here: https://github.com/CleverPumpkin/CrunchyCalendar#viewcustomization

For customize calendar_date_selected_background and calendar_date_today_text_color add your custom drawable selector:
if you set styles and colors programmatically
calendarView.setDateCellBackgroundRes(R.drawable.custom_date_bg_selector)
if you set styles and colors with XML attributes:
<item name="calendar_date_background">@drawable/custom_date_bg_selector</item>

@salvadr
Copy link

salvadr commented May 13, 2021

Hi,
it's not possible to change calendar_date_today_text_color in the XML styles as suggested,
Cannot resolve symbol 'calendar_date_today_text_color'
Any ideas please?
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants