Android Material Design Inline Datepicker issue

The calendarViewShown attribute is deprecated in the calendar-style date picker. If you want the spinner-style date picker back, you can set the datePickerMode attribute to spinner. <DatePicker … android:datePickerMode=”spinner” /> As for the scrolling issue, the calendar-style date picker doesn’t support nested scrolling.

Set Limit on the DatePickerDialog in Android?

All the other answers seem rather convoluted, so I’m just going to state the obvious: you can get the underlying DatePicker from a DatePickerDialog (by simply calling getDatePicker()) and set its bounds using: setMinDate(long minDate) setMaxDate(long maxDate) Where the argument is the usual number of milliseconds since January 1, 1970 00:00:00 in the default time … Read more