How can I hide the header on the screenshot below?
Use a CalendarView instead. Looks the same as a DatePicker, just does not have a header.
Just use calendar view:
<CalendarView
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
In order to display DatePicker as calendar view, without a header, you can switch to spinner mode and hide the spinner, i.e.:
<DatePicker
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:datePickerMode="spinner"
android:spinnersShown="false" />
You could not do much about it, what you can do is forced to be a spinner
<DatePicker
...
android:datePickerMode="spinner" />
Or just create your own custom datePicker http://www.mysamplecode.com/2011/10/android-datepickerdialog.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With