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.
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 |
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
|
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
|