How to turn off CalendarView in a DatePicker?

If you are targeting a later version of the API, you can use the following XML (no need to write Java code) in your <DatePicker>:

 android:calendarViewShown="false"

Leave a Comment