How to use DatePickerDialog as a Preference

后端 未结 6 899
梦谈多话
梦谈多话 2021-02-18 20:53

I have preferences working and I am using a combination of CheckBoxPreference and EditTextPreference. I would like to replace one of them with a DatePickerDialog.

When m

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-18 21:14

    Here's an implementation ready to use in your project as a lib.

    To quote the source:

    Use it just like any other preference in your PreferenceScreen XML:

    
    

提交回复
热议问题