'Kotlin Android studio : Non clickable calendar-view

i have a basic calendar view for my home screen of app

Goal: Display todays date but don't allow the user to click any other date

Problem: Using non-clickable or clickable = false doesnt work.

How do i make a calendar view in XML or kt non clickable?



Solution 1:[1]

Try using:

enabled = false

And if that doesn't work try implementing the empty click event listener.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Karan Mehta