Hide Calendarview from DatePicker programmatically in API 21

后端 未结 4 666
说谎
说谎 2020-12-29 17:42

I\'m having the same issue as this thread: Android Material Design Inline Datepicker issue, but I am not using an XML layout, instead I\'m building the DatePicker programmat

4条回答
  •  天涯浪人
    2020-12-29 18:09

    If you have to set it up programmatically in a DatePickerFragment just set this:

    DatePickerDialog dialog = new DatePickerDialog(getActivity(),android.R.style.Theme_Holo_Dialog_MinWidth, this, year, month, day);
    

    with whatever style you like.

提交回复
热议问题