public class PreferenceAdapter
extends PreferenceGroupAdapter
| Constructor and Description |
|---|
PreferenceAdapter(PreferenceScreen preferenceScreen)
Creates a new recycler view adapter, which extends the class PreferenceGroupAdapter in order
to modify the appearance of preferences.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onBindViewHolder(PreferenceViewHolder viewHolder,
int position) |
protected void |
onVisualizePreference(Preference preference,
PreferenceViewHolder viewHolder)
The method, which is invoked, when a specific preference is visualized.
|
public PreferenceAdapter(PreferenceScreen preferenceScreen)
preferenceScreen - The preference screen, which contains the preferences, which should be managed by the
adapter, as an instance of the class PreferenceScreen. The preference screen may not
be nullprotected void onVisualizePreference(Preference preference,
PreferenceViewHolder viewHolder)
preference - The preference, which is visualized, as an instance of the class Preference. The
preference may not be nullviewHolder - The view holder, which corresponds to the preference, as an instance of the class
PreferenceViewHolder. The view holder may not be nullpublic final void onBindViewHolder(PreferenceViewHolder viewHolder,
int position)