+ 1

Android Studio calendarview

Hi. I'm stuck with my android app. I use android studio with java. I have a list of dates and an activity with the standard calendarview widget. Now I want to hightlight the dates in the calendarview. I've heard, that this is not possible with the calendarview, that is provided by AS. Is that true? If so: can you recommend another widget (java not kotlin)?

10th Jan 2021, 3:02 PM
Fu Foy
Fu Foy - avatar
2 Réponses
+ 7
I thought to explain you but I then found the official doc itself! A small description although- The range of dates supported by this calendar is configurable. The exact appearance and interaction model of this widget may vary between OS versions and themes, but in general the mentioned widgets should suffice your quest. You can try with any of them eg. android:focusedMonthDateColor --The color for the dates of the focused month. May be a reference to another resource, in the form package or theme. May be a color value, in the form of "#rrggbb", or "#aarrggbb". For detailed explanation see this: https://developer.android.com/reference/android/widget/CalendarView#attr_android:dateTextAppearance
10th Jan 2021, 4:12 PM
Aditya
Aditya - avatar
+ 1
Thank you!
10th Jan 2021, 7:44 PM
Fu Foy
Fu Foy - avatar