Java android.preference PreferenceCategory fields, constructors, methods, implement or subclass

Example usage for Java android.preference PreferenceCategory fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.preference PreferenceCategory.

The text is from its open source code.

Constructor

Method

voidaddItemFromInflater(Preference preference)
Called by the inflater to add an item to this group.
booleanaddPreference(Preference preference)
Adds a Preference at the correct position based on the preference's order.
PreferencefindPreference(CharSequence key)
Finds a Preference based on its key.
StringgetKey()
Gets the key for this Preference, which is also the key used for storing values into SharedPreferences or PreferenceDataStore .
PreferencegetPreference(int index)
Returns the Preference at a particular index.
intgetPreferenceCount()
Returns the number of children Preference s.
voidremoveAll()
Removes all Preference Preferences from this group.
booleanremovePreference(Preference preference)
Removes a Preference from this group.
voidsetEnabled(boolean enabled)
Sets whether this Preference is enabled.
voidsetKey(String key)
Sets the key for this Preference, which is used as a key to the SharedPreferences or PreferenceDataStore .
voidsetOnPreferenceClickListener(OnPreferenceClickListener onPreferenceClickListener)
Sets the callback to be invoked when this Preference is clicked.
voidsetSummary(CharSequence summary)
Sets the summary for this Preference with a CharSequence.
voidsetTitle(CharSequence title)
Sets the title for this Preference with a CharSequence.