public class PreferenceCategory extends PreferenceGroup
Preference
objects and provide a disabled title above
the group.
For information about building a settings UI with Preferences, read the Settings guide.
PreferenceGroup.PreferencePositionCallback
Preference.BaseSavedState, Preference.OnPreferenceChangeListener, Preference.OnPreferenceClickListener
DEFAULT_ORDER
Constructor and Description |
---|
PreferenceCategory(Context context) |
PreferenceCategory(Context context,
AttributeSet attrs) |
PreferenceCategory(Context context,
AttributeSet attrs,
int defStyleAttr) |
PreferenceCategory(Context context,
AttributeSet attrs,
int defStyleAttr,
int defStyleRes) |
Modifier and Type | Method and Description |
---|---|
boolean |
isEnabled()
Checks whether this Preference should be enabled in the list.
|
void |
onInitializeAccessibilityNodeInfo(AccessibilityNodeInfoCompat info)
Initializes an
AccessibilityNodeInfo with information
about the View for this Preference. |
protected boolean |
onPrepareAddPreference(Preference preference)
Prepares a
Preference to be added to the group. |
boolean |
shouldDisableDependents()
Checks whether this preference's dependents should currently be
disabled.
|
addItemFromInflater, addPreference, dispatchRestoreInstanceState, dispatchSaveInstanceState, findPreference, getPreference, getPreferenceCount, isAttached, isOnSameScreenAsChildren, isOrderingAsAdded, notifyDependencyChange, onAttached, onDetached, removeAll, removePreference, setOrderingAsAdded
callChangeListener, compareTo, findPreferenceInHierarchy, getContext, getDependency, getExtras, getFragment, getIcon, getIntent, getKey, getLayoutResource, getOnPreferenceChangeListener, getOnPreferenceClickListener, getOrder, getPersistedBoolean, getPersistedFloat, getPersistedInt, getPersistedLong, getPersistedString, getPreferenceManager, getSharedPreferences, getShouldDisableView, getSummary, getTitle, getWidgetLayoutResource, hasKey, isPersistent, isSelectable, isVisible, notifyChanged, notifyHierarchyChanged, onAttachedToHierarchy, onAttachedToHierarchy, onBindViewHolder, onClick, onDependencyChanged, onGetDefaultValue, onParentChanged, onPrepareForRemoval, onRestoreInstanceState, onSaveInstanceState, onSetInitialValue, peekExtras, performClick, performClick, persistBoolean, persistFloat, persistInt, persistLong, persistString, restoreHierarchyState, saveHierarchyState, setDefaultValue, setDependency, setEnabled, setFragment, setIcon, setIcon, setIntent, setKey, setLayoutResource, setOnPreferenceChangeListener, setOnPreferenceClickListener, setOrder, setPersistent, setSelectable, setShouldDisableView, setSummary, setSummary, setTitle, setTitle, setViewId, setVisible, setWidgetLayoutResource, shouldPersist, toString
public PreferenceCategory(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
public PreferenceCategory(Context context, AttributeSet attrs, int defStyleAttr)
public PreferenceCategory(Context context, AttributeSet attrs)
public PreferenceCategory(Context context)
protected boolean onPrepareAddPreference(Preference preference)
PreferenceGroup
Preference
to be added to the group.onPrepareAddPreference
in class PreferenceGroup
preference
- The preference to add.public boolean isEnabled()
Preference
isEnabled
in class Preference
public boolean shouldDisableDependents()
Preference
shouldDisableDependents
in class Preference
public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfoCompat info)
Preference
AccessibilityNodeInfo
with information
about the View for this Preference.onInitializeAccessibilityNodeInfo
in class Preference