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"
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"