belongs to Maven artifact com.android.support:preference-v7:28.0.0-alpha1
PreferenceGroup
public
abstract
class
PreferenceGroup
extends Preference
java.lang.Object | ||
↳ | android.support.v7.preference.Preference | |
↳ | android.support.v7.preference.PreferenceGroup |
![]() |
A container for multiple
Preference
objects. It is a base class for Preference objects that are
parents, such as PreferenceCategory
and PreferenceScreen
.
Developer Guides
For information about building a settings UI with Preferences, read the Settings guide.
Summary
Nested classes | |
---|---|
interface |
PreferenceGroup.PreferencePositionCallback
Interface for PreferenceGroup Adapters to implement so that
|
XML attributes | |
---|---|
PreferenceGroup_initialExpandedChildrenCount |
Inherited XML attributes | |
---|---|
![]()
android.support.v7.preference.Preference
|
Inherited constants |
---|
![]()
android.support.v7.preference.Preference
|
Public constructors | |
---|---|
PreferenceGroup(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
|
|
PreferenceGroup(Context context, AttributeSet attrs, int defStyleAttr)
|
|
PreferenceGroup(Context context, AttributeSet attrs)
|
Public methods | |
---|---|
void
|
addItemFromInflater(Preference preference)
Called by the inflater to add an item to this group. |
boolean
|
addPreference(Preference preference)
Adds a |
Preference
|
findPreference(CharSequence key)
Finds a |
int
|
getInitialExpandedChildrenCount()
Gets the maximal number of children that is initially shown. |