I am trying to implement the date picker dialog but the dialog appears with just a single date and show rest of the date as blank what could be the reason?
Asked
Active
Viewed 114 times
0
-
Show the code bro – Vucko May 21 '21 at 09:50
-
change the theme of date picker dialog. its because of your application theme. – ahmad bajwa May 21 '21 at 09:50
-
you can custom color of data picker dialog – tadev May 21 '21 at 10:32
-
It looks like a Theme issue, just change the app theme or make a custom theme for the Date picker dialog and apply it on code. – Deep Rathod May 21 '21 at 16:31
1 Answers
1
This is definitely a Theme issue. The selected date is visible because of the contrast in text color and circle color. You can refer this link for understanding the anatomy of the Date Picker theme by the Material design guideline.
https://material.io/components/date-pickers#theming
Refer this answer for understanding which colors to use.
https://stackoverflow.com/a/29014475/4491971
You can use these attributes to change the colors via style
dayOfWeekBackground
dayOfWeekTextAppearance
headerMonthTextAppearance
headerDayOfMonthTextAppearance
headerYearTextAppearance
headerSelectedTextColor
yearListItemTextAppearance
yearListSelectorColor
calendarTextColor
calendarSelectedTextColor
If you share the current style and the code snippet, we can refine the answer more.

Mohit Ajwani
- 1,328
- 12
- 24