CompactCalendarView icon indicating copy to clipboard operation
CompactCalendarView copied to clipboard

remove current day background color

Open leonardosetiadi opened this issue 8 years ago • 3 comments

is there any way to remove current day background color? i dont want to change it to transparent because it will overwrite the event indicator.

leonardosetiadi avatar Apr 09 '17 14:04 leonardosetiadi

You mean the currently selected day when you tap and select a day you don't want to highlight it? OR the today highlight that is inly higlighlted for today's date?

Depending on what you what, you can take a fork of the code. Import the library to your project and simply delete some lines of code, like the below:

https://github.com/SundeepK/CompactCalendarView/blob/master/library/src/main/java/com/github/sundeepk/compactcalendarview/CompactCalendarController.java#L870

SundeepK avatar Apr 10 '17 11:04 SundeepK

thankyou for the answer, it works.

leonardosetiadi avatar Jul 17 '17 01:07 leonardosetiadi

@Override public void onMonthScroll(Date date) { String monthDate = getMonthyear(date); tvMonth.setText(monthDate + ""); if (date.getMonth() != new Date().getMonth()) { monthCalendar.setCurrentSelectedDayBackgroundColor(getResources().getColor(R.color.transparent)); } else { monthCalendar.setCurrentDate(new Date()); monthCalendar.setCurrentSelectedDayBackgroundColor(getResources().getColor(R.color.colorPrimary)); }

        }

SantoshRawat avatar Sep 19 '18 12:09 SantoshRawat