Open kalaiarasi-p-4530 opened 4 years ago
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.
@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"
I tried to change the background color of the calendar and today's background. app:calendarBackground="@color/red" // showing white bg app:todayCheckedBackground="@color/blue" // showing transparent bg
attached screenshot for reference