public class MultiSelectListPreference<T>
extends android.preference.ListPreference
Preference that displays a list of entries as
a dialog and allows multiple selections
This preference will store a string into the SharedPreferences. This string will be the values selected
from the ListPreference.setEntryValues(CharSequence[]) array.
| Modifier and Type | Class and Description |
|---|---|
static class |
MultiSelectListPreference.Mapper |
| Constructor and Description |
|---|
MultiSelectListPreference(android.content.Context context) |
MultiSelectListPreference(android.content.Context context,
android.util.AttributeSet attrs) |
| Modifier and Type | Method and Description |
|---|---|
static <T> org.solovyev.common.text.Mapper<List<T>> |
newListMapper(org.solovyev.common.text.Mapper<T> nestedMapper) |
static <T> org.solovyev.common.text.Mapper<List<T>> |
newListMapper(org.solovyev.common.text.Mapper<T> nestedMapper,
String separator) |
protected void |
onDialogClosed(boolean positiveResult) |
protected void |
onPrepareDialogBuilder(android.app.AlertDialog.Builder builder) |
void |
setEntries(CharSequence[] entries) |
findIndexOfValue, getEntries, getEntry, getEntryValues, getSummary, getValue, onGetDefaultValue, onRestoreInstanceState, onSaveInstanceState, onSetInitialValue, setEntries, setEntryValues, setEntryValues, setSummary, setValue, setValueIndexgetDialog, getDialogIcon, getDialogLayoutResource, getDialogMessage, getDialogTitle, getNegativeButtonText, getPositiveButtonText, onActivityDestroy, onBindDialogView, onClick, onClick, onCreateDialogView, onDismiss, setDialogIcon, setDialogIcon, setDialogLayoutResource, setDialogMessage, setDialogMessage, setDialogTitle, setDialogTitle, setNegativeButtonText, setNegativeButtonText, setPositiveButtonText, setPositiveButtonText, showDialogcallChangeListener, compareTo, findPreferenceInHierarchy, getContext, getDependency, getEditor, getExtras, getFragment, getIcon, getIntent, getKey, getLayoutResource, getOnPreferenceChangeListener, getOnPreferenceClickListener, getOrder, getPersistedBoolean, getPersistedFloat, getPersistedInt, getPersistedLong, getPersistedString, getPreferenceManager, getSharedPreferences, getShouldDisableView, getTitle, getTitleRes, getView, getWidgetLayoutResource, hasKey, isEnabled, isPersistent, isSelectable, notifyChanged, notifyDependencyChange, notifyHierarchyChanged, onAttachedToActivity, onAttachedToHierarchy, onBindView, onCreateView, onDependencyChanged, onPrepareForRemoval, peekExtras, persistBoolean, persistFloat, persistInt, persistLong, persistString, restoreHierarchyState, saveHierarchyState, setDefaultValue, setDependency, setEnabled, setFragment, setIcon, setIcon, setIntent, setKey, setLayoutResource, setOnPreferenceChangeListener, setOnPreferenceClickListener, setOrder, setPersistent, setSelectable, setShouldDisableView, setSummary, setTitle, setTitle, setWidgetLayoutResource, shouldCommit, shouldDisableDependents, shouldPersist, toStringpublic MultiSelectListPreference(android.content.Context context)
public MultiSelectListPreference(android.content.Context context,
@Nullable
android.util.AttributeSet attrs)
public void setEntries(@Nonnull CharSequence[] entries)
setEntries in class android.preference.ListPreferenceprotected void onPrepareDialogBuilder(@Nonnull android.app.AlertDialog.Builder builder)
onPrepareDialogBuilder in class android.preference.ListPreferenceprotected void onDialogClosed(boolean positiveResult)
onDialogClosed in class android.preference.ListPreference@Nonnull public static <T> org.solovyev.common.text.Mapper<List<T>> newListMapper(@Nonnull org.solovyev.common.text.Mapper<T> nestedMapper)
Copyright © 2014 se.solovyev. All Rights Reserved.