CompactCalendarView
CompactCalendarView copied to clipboard
remove current day background color
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.
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
thankyou for the answer, it works.
@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)); }
}