Dynamically create CheckBoxPreferences

后端 未结 4 2194
孤城傲影
孤城傲影 2021-02-13 23:18

I am currently building out a list of rows with checkboxes dynamically using content from a web service. However, this ListView will need to do pretty much what a

4条回答
  •  情书的邮戳
    2021-02-13 23:52

    Use PreferenceFragmentCompat from Preference Compat Library

    compile 'com.android.support:preference-v7:23.4.0'

    Check this article for the implementation details https://medium.com/@arasthel92/dynamically-creating-preferences-on-android-ecc56e4f0789#.71ssvjses

提交回复
热议问题