public class PanListPreference
extends android.preference.ListPreference
Preference
that displays a list of entries as
a dialog geared toward Plugin Developers.
This preference will store a string into the SharedPreferences. This string will be the value
from the ListPreference.setEntryValues(CharSequence[])
array.
This has been modified to allow for a pluginIcon attribute which will allow for icons
to be used in the entity.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
Constructor and Description |
---|
PanListPreference(android.content.Context context) |
PanListPreference(android.content.Context context,
android.util.AttributeSet attrs) |
PanListPreference(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr) |
PanListPreference(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr,
int defStyleRes) |
Modifier and Type | Method and Description |
---|---|
android.content.Context |
getContext() |
static void |
setContext(android.content.Context c) |
protected void |
showDialog(android.os.Bundle state)
Shows the dialog associated with this Preference.
|
findIndexOfValue, getEntries, getEntry, getEntryValues, getSummary, getValue, onDialogClosed, onGetDefaultValue, onPrepareDialogBuilder, onRestoreInstanceState, onSaveInstanceState, onSetInitialValue, setEntries, setEntries, setEntryValues, setEntryValues, setSummary, setValue, setValueIndex
getDialog, getDialogIcon, getDialogLayoutResource, getDialogMessage, getDialogTitle, getNegativeButtonText, getPositiveButtonText, onActivityDestroy, onBindDialogView, onClick, onClick, onCreateDialogView, onDismiss, setDialogIcon, setDialogIcon, setDialogLayoutResource, setDialogMessage, setDialogMessage, setDialogTitle, setDialogTitle, setNegativeButtonText, setNegativeButtonText, setPositiveButtonText, setPositiveButtonText
callChangeListener, compareTo, findPreferenceInHierarchy, 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
public static final java.lang.String TAG
public PanListPreference(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr, int defStyleRes)
public PanListPreference(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr)
public PanListPreference(android.content.Context context, android.util.AttributeSet attrs)
public PanListPreference(android.content.Context context)
public static void setContext(android.content.Context c)
public android.content.Context getContext()
getContext
in class android.preference.Preference
protected void showDialog(android.os.Bundle state)
showDialog
in class android.preference.DialogPreference
state
- Optional instance state to restore on the dialog