Google は、黒人コミュニティに対する人種平等の促進に取り組んでいます。取り組みを見る


abstract class PreferenceGroup : Preference
   ↳ androidx.preference.Preference
   ↳ androidx.preference.PreferenceGroup

A container for multiple Preferences. It is a base class for preference objects that are parents, such as PreferenceCategory and PreferenceScreen.


Nested classes

Interface for PreferenceGroup adapters to implement so that PreferenceFragmentCompat#scrollToPreference(String) and PreferenceFragmentCompat#scrollToPreference(Preference) can determine the correct scroll position to request.

Inherited constants
Public constructors
<init>(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int)

<init>(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

<init>(context: Context!, attrs: AttributeSet!)

Public methods
open Unit

Called by the inflater to add an item to this group.

open Boolean
addPreference(preference: Preference!)

Adds a Preference at the correct position based on the preference's order.

open T?

Finds a Preference based on its key.

open Int

Gets the maximal number of children that are initially shown.

open Preference!

Returns the Preference at a particular index.

open Int

Returns the number of children Preferences.

open Boolean

Whether this group is ordering preferences in the order they are added.

open Unit
notifyDependencyChange(disableDependents: Boolean)

open Unit

open Unit

open Unit

Removes all Preferences from this group.

open Boolean

Removes a Preference from this group.

open Boolean

Recursively finds and removes a Preference from this group or a nested group lower down in the hierarchy.

open Unit

Sets the maximal number of children that are shown when the preference group is launched where the rest of the children will be hidden.

open Unit
setOrderingAsAdded(orderingAsAdded: Boolean)

Whether to order the Preference children of this group as they are added.

Protected methods
open Unit

open Unit