How to turn off CalendarView in a DatePicker?

前端 未结 5 1365
不思量自难忘°
不思量自难忘° 2020-12-03 06:53

On my settings screen I have a date picker widget. In the designer in Eclipse, it shows as I want (3 spinners for D-M-Y) but when I test on my device, I get a rather odd vie

5条回答
  •  既然无缘
    2020-12-03 06:55

    I made it work with the following XML configuration:

    android:datePickerMode="spinner"
    android:calendarViewShown="false"
    

    Only the following configuration didn't work for me:

    android:calendarViewShown="false"
    

提交回复
热议问题