belongs to Maven artifact com.android.support:preference-v7:28.0.0-alpha1
PreferenceGroup.PreferencePositionCallback
public
static
interface
PreferenceGroup.PreferencePositionCallback
android.support.v7.preference.PreferenceGroup.PreferencePositionCallback |
Interface for PreferenceGroup Adapters to implement so that
scrollToPreference(String)
and
scrollToPreference(Preference)
or
scrollToPreference(String)
and
scrollToPreference(Preference)
can determine the correct scroll position to request.
Summary
Public methods | |
---|---|
abstract
int
|
getPreferenceAdapterPosition(String key)
Return the adapter position of the first |
abstract
int
|
getPreferenceAdapterPosition(Preference preference)
Return the adapter position of the specified |
Public methods
getPreferenceAdapterPosition
int getPreferenceAdapterPosition (String key)
Return the adapter position of the first Preference
with the specified key
Parameters | |
---|---|
key |
String : Key of Preference to find |
Returns | |
---|---|
int |
Adapter position of the Preference or
NO_POSITION if not found
|
getPreferenceAdapterPosition
int getPreferenceAdapterPosition (Preference preference)
Return the adapter position of the specified Preference
object
Parameters | |
---|---|
preference |
Preference : Preference object to find |
Returns | |
---|---|
int |
Adapter position of the Preference or
NO_POSITION if not found
|
Interfaces
- DialogPreference.TargetFragment
- Preference.OnPreferenceChangeListener
- Preference.OnPreferenceClickListener
- PreferenceFragmentCompat.OnPreferenceDisplayDialogCallback
- PreferenceFragmentCompat.OnPreferenceStartFragmentCallback
- PreferenceFragmentCompat.OnPreferenceStartScreenCallback
- PreferenceGroup.PreferencePositionCallback
- PreferenceManager.OnDisplayPreferenceDialogListener
- PreferenceManager.OnNavigateToScreenListener
- PreferenceManager.OnPreferenceTreeClickListener
Classes
- CheckBoxPreference
- DialogPreference
- DropDownPreference
- EditTextPreference
- EditTextPreferenceDialogFragmentCompat
- ListPreference
- ListPreferenceDialogFragmentCompat
- MultiSelectListPreferenceDialogFragmentCompat
- Preference
- Preference.BaseSavedState
- PreferenceCategory
- PreferenceDataStore
- PreferenceDialogFragmentCompat
- PreferenceFragmentCompat
- PreferenceGroup
- PreferenceManager
- PreferenceManager.PreferenceComparisonCallback
- PreferenceManager.SimplePreferenceComparisonCallback
- PreferenceScreen
- PreferenceViewHolder
- R
- R.anim
- R.attr
- R.bool
- R.color
- R.dimen
- R.drawable
- R.id
- R.integer
- R.layout
- R.string
- R.style
- R.styleable
- SeekBarPreference
- SwitchPreferenceCompat
- TwoStatePreference