val startDate = Calendar.getInstance(TimeZone.getDefault(), Locale.getDefault())
startDate.set(2019, 9, 1)
val endDate = Calendar.getInstance(TimeZone.getDefault(), Locale.getDefault()) // Today is 24.01.2020. Truly, does not matter which date I set
calendar_view.apply {
setMode(CalendarPicker.SelectionMode.RANGE) // You can set it via XML
setRangeDate(startDate.time, endDate.time)
}
And my phone display calendar like this:
Xiaomi mi6, Android 9
I init calendar like this:
And my phone display calendar like this:
Xiaomi mi6, Android 9