如何从PreferenceCategory动态获取KEY?

时间:2018-08-27 01:04:06

标签: android listpreference

  

如何通过编程方式从PreferenceCategory onclicklistener动态获取关键的ListPreference?

this my PreferenceCategory

 PreferenceCategory_jadwal_sholat.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
        @Override
        public boolean onPreferenceClick(Preference preference) {

            **// How to get KEY list preferences ?**

            return false;
        }
    });

0 个答案:

没有答案