How to change background color of calendar and today background.
kalaiarasisp opened this issue · comments
use shape resources
like
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="@color/red" />
<size
android:width="40dp"
android:height="40dp" />
</shape>
app:calendarBackground="@drawable/red"
Thank you !!! I have tried to change background color of calendar using drawable resource. It was working when a calendar is on month mode. When I scroll to week mode the background color not working. I have attached the screenshot below.
<img width="1060" alt="Screen Shot 2020-05-18 at 5 40 06 PM" src="https://user-images.githubusercontent.com/9463173/82211435-747b3b80-992e-11ea-88c0-4d48b1891c70.png">
![Screenshot_1589803787](https://user-images.githubusercontent.com/9463173/82211445-77762c00-992e-11ea-87b9-e9fa4c8db389.png)
![Screenshot_1589803790](https://user-images.githubusercontent.com/9463173/82211446-780ec280-992e-11ea-9a46-2546157a9c73.png)
@kalaiarasisp I see your screenshot is the custom Adapter pattern,Custom property is invalid when in custom Adapter pattern ,You can try to change background color of calendar using drawable resource in "TestMiui10Activity"