Example usage for Java android.preference PreferenceCategory fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addItemFromInflater(Preference preference) Called by the inflater to add an item to this group. |
boolean | addPreference(Preference preference) Adds a Preference at the correct position based on the preference's order. |
Preference | findPreference(CharSequence key) Finds a Preference based on its key. |
String | getKey() Gets the key for this Preference, which is also the key used for storing values into SharedPreferences or PreferenceDataStore . |
Preference | getPreference(int index) Returns the Preference at a particular index. |
int | getPreferenceCount() Returns the number of children Preference s. |
void | removeAll() Removes all Preference Preferences from this group. |
boolean | removePreference(Preference preference) Removes a Preference from this group. |
void | setEnabled(boolean enabled) Sets whether this Preference is enabled. |
void | setKey(String key) Sets the key for this Preference, which is used as a key to the SharedPreferences or PreferenceDataStore . |
void | setOnPreferenceClickListener(OnPreferenceClickListener onPreferenceClickListener) Sets the callback to be invoked when this Preference is clicked. |
void | setSummary(CharSequence summary) Sets the summary for this Preference with a CharSequence. |
void | setTitle(CharSequence title) Sets the title for this Preference with a CharSequence. |