public class AccessPointPreference extends Preference
Modifier and Type | Class and Description |
---|---|
static class |
AccessPointPreference.UserBadgeCache |
Preference.BaseSavedState, Preference.OnPreferenceChangeListener, Preference.OnPreferenceClickListener
DEFAULT_ORDER
Constructor and Description |
---|
AccessPointPreference(AccessPoint accessPoint,
Context context,
AccessPointPreference.UserBadgeCache cache,
boolean forSavedNetworks) |
AccessPointPreference(AccessPoint accessPoint,
Context context,
AccessPointPreference.UserBadgeCache cache,
int iconResId,
boolean forSavedNetworks) |
AccessPointPreference(Context context,
AttributeSet attrs) |
Modifier and Type | Method and Description |
---|---|
AccessPoint |
getAccessPoint() |
protected void |
notifyChanged()
Should be called when the data of this
Preference has changed. |
void |
onBindViewHolder(PreferenceViewHolder view)
Binds the created View to the data for this Preference.
|
void |
onLevelChanged() |
void |
refresh()
Updates the title and summary; may indirectly call notifyChanged().
|
protected void |
updateBadge(Context context) |
protected void |
updateIcon(int level,
Context context) |
callChangeListener, compareTo, findPreferenceInHierarchy, getContext, getDependency, getExtras, getFragment, getIcon, getIntent, getKey, getLayoutResource, getOnPreferenceChangeListener, getOnPreferenceClickListener, getOrder, getPersistedBoolean, getPersistedFloat, getPersistedInt, getPersistedLong, getPersistedString, getPreferenceManager, getSharedPreferences, getShouldDisableView, getSummary, getTitle, getWidgetLayoutResource, hasKey, isEnabled, isPersistent, isSelectable, isVisible, notifyDependencyChange, notifyHierarchyChanged, onAttached, onAttachedToHierarchy, onAttachedToHierarchy, onClick, onDependencyChanged, onDetached, onGetDefaultValue, onInitializeAccessibilityNodeInfo, onParentChanged, onPrepareForRemoval, onRestoreInstanceState, onSaveInstanceState, onSetInitialValue, peekExtras, performClick, performClick, persistBoolean, persistFloat, persistInt, persistLong, persistString, restoreHierarchyState, saveHierarchyState, setDefaultValue, setDependency, setEnabled, setFragment, setIcon, setIcon, setIntent, setKey, setLayoutResource, setOnPreferenceChangeListener, setOnPreferenceClickListener, setOrder, setPersistent, setSelectable, setShouldDisableView, setSummary, setSummary, setTitle, setTitle, setViewId, setVisible, setWidgetLayoutResource, shouldDisableDependents, shouldPersist, toString
public AccessPointPreference(Context context, AttributeSet attrs)
public AccessPointPreference(AccessPoint accessPoint, Context context, AccessPointPreference.UserBadgeCache cache, boolean forSavedNetworks)
public AccessPointPreference(AccessPoint accessPoint, Context context, AccessPointPreference.UserBadgeCache cache, int iconResId, boolean forSavedNetworks)
public AccessPoint getAccessPoint()
public void onBindViewHolder(PreferenceViewHolder view)
Preference
This is a good place to grab references to custom Views in the layout and set properties on them.
Make sure to call through to the superclass's implementation.
onBindViewHolder
in class Preference
view
- The ViewHolder that provides references to the views to fill in. These views
will be recycled, so you should not hold a reference to them after this method
returns.protected void updateIcon(int level, Context context)
protected void updateBadge(Context context)
public void refresh()
protected void notifyChanged()
Preference
Preference
has changed.notifyChanged
in class Preference
public void onLevelChanged()