How to turn off CalendarView in a DatePicker?

前端 未结 5 1362
不思量自难忘°
不思量自难忘° 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 07:05

    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"
    

提交回复
热议问题