prolificinteractive / material-calendarview

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

color decoration function. #1125

Closed yeo-da closed 2 years ago

yeo-da commented 2 years ago

Hi!

I have a question.

image

  1. gray(2022-01-01, 2022-01-08~2022-01-10) and pink
    • view.setSelectionDrawable(context.getResources().getDrawable(drawable));
    • It was made using this source code.
  2. black(2022-01-04)
    • app:mcv_selectionColor="#111111"
    • It was made using this source code.
    • The function that appears on the calendar when you click on the date.

question image

When clicked 2022-01-06, it is covered by pink. I want a black circle to express the selected date to appear.

I want help. Thank you.

yeo-da commented 2 years ago

in xml app:mcv_selectionColor="#00ff0000

new deco event on the date clicked.