-3

DatePicker is taking up a lot of space. I just want to display the tabs for date, month and year and no calendar. Is it possible?

Excrytal
  • 13
  • 1
  • 4

1 Answers1

0

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

android:calendarViewShown="false"

The method in DatePicker

public void setCalendarViewShown (boolean shown);

e.g. : dateselecter.setCalendarViewShown(false);

Maveňツ
  • 1
  • 12
  • 50
  • 89
Prashant Jajal
  • 3,469
  • 5
  • 24
  • 38