Class ListPreferenceWithSummary
java.lang.Object
android.preference.Preference
android.preference.DialogPreference
android.preference.ListPreference
com.brightcove.player.captioning.preferences.ListPreferenceWithSummary
- All Implemented Interfaces:
android.content.DialogInterface.OnClickListener
,android.content.DialogInterface.OnDismissListener
,android.preference.PreferenceManager.OnActivityDestroyListener
,Comparable<android.preference.Preference>
public class ListPreferenceWithSummary
extends android.preference.ListPreference
A small extension to ListPreference to work around a platform bug on older OS versions
where the summary is not updated once the user chooses a value.
-
Nested Class Summary
Nested classes/interfaces inherited from class android.preference.Preference
android.preference.Preference.BaseSavedState, android.preference.Preference.OnPreferenceChangeListener, android.preference.Preference.OnPreferenceClickListener
-
Field Summary
Fields inherited from class android.preference.Preference
DEFAULT_ORDER
-
Constructor Summary
ConstructorDescriptionListPreferenceWithSummary
(android.content.Context context) ListPreferenceWithSummary
(android.content.Context context, android.util.AttributeSet attrs) -
Method Summary
Methods inherited from class android.preference.ListPreference
findIndexOfValue, getEntries, getEntry, getEntryValues, getSummary, getValue, onDialogClosed, onGetDefaultValue, onPrepareDialogBuilder, onRestoreInstanceState, onSaveInstanceState, onSetInitialValue, setEntries, setEntries, setEntryValues, setEntryValues, setValueIndex
Methods inherited from class android.preference.DialogPreference
getDialog, getDialogIcon, getDialogLayoutResource, getDialogMessage, getDialogTitle, getNegativeButtonText, getPositiveButtonText, onActivityDestroy, onBindDialogView, onClick, onClick, onCreateDialogView, onDismiss, setDialogIcon, setDialogIcon, setDialogLayoutResource, setDialogMessage, setDialogMessage, setDialogTitle, setDialogTitle, setNegativeButtonText, setNegativeButtonText, setPositiveButtonText, setPositiveButtonText, showDialog
Methods inherited from class android.preference.Preference
callChangeListener, compareTo, findPreferenceInHierarchy, getContext, getDependency, getEditor, getExtras, getFragment, getIcon, getIntent, getKey, getLayoutResource, getOnPreferenceChangeListener, getOnPreferenceClickListener, getOrder, getParent, getPersistedBoolean, getPersistedFloat, getPersistedInt, getPersistedLong, getPersistedString, getPersistedStringSet, getPreferenceDataStore, getPreferenceManager, getSharedPreferences, getShouldDisableView, getTitle, getTitleRes, getView, getWidgetLayoutResource, hasKey, isEnabled, isIconSpaceReserved, isPersistent, isRecycleEnabled, isSelectable, isSingleLineTitle, notifyChanged, notifyDependencyChange, notifyHierarchyChanged, onAttachedToActivity, onAttachedToHierarchy, onBindView, onCreateView, onDependencyChanged, onParentChanged, onPrepareForRemoval, peekExtras, persistBoolean, persistFloat, persistInt, persistLong, persistString, persistStringSet, restoreHierarchyState, saveHierarchyState, setDefaultValue, setDependency, setEnabled, setFragment, setIcon, setIcon, setIconSpaceReserved, setIntent, setKey, setLayoutResource, setOnPreferenceChangeListener, setOnPreferenceClickListener, setOrder, setPersistent, setPreferenceDataStore, setRecycleEnabled, setSelectable, setShouldDisableView, setSingleLineTitle, setSummary, setTitle, setTitle, setWidgetLayoutResource, shouldCommit, shouldDisableDependents, shouldPersist, toString
-
Constructor Details
-
ListPreferenceWithSummary
public ListPreferenceWithSummary(android.content.Context context, android.util.AttributeSet attrs) -
ListPreferenceWithSummary
public ListPreferenceWithSummary(android.content.Context context)
-
-
Method Details
-
setValue
- Overrides:
setValue
in classandroid.preference.ListPreference
-
setSummary
- Overrides:
setSummary
in classandroid.preference.ListPreference
-