public abstract class TwoStatePreference extends Preference
Preference.BaseSavedState, Preference.OnPreferenceChangeListener, Preference.OnPreferenceClickListenerDEFAULT_ORDER| Constructor and Description |
|---|
TwoStatePreference(android.content.Context context) |
TwoStatePreference(android.content.Context context,
android.util.AttributeSet attrs) |
TwoStatePreference(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getDisableDependentsState() |
CharSequence |
getSummaryOff() |
CharSequence |
getSummaryOn() |
boolean |
isChecked() |
protected void |
onClick() |
protected Object |
onGetDefaultValue(android.content.res.TypedArray a,
int index) |
protected void |
onRestoreInstanceState(android.os.Parcelable state) |
protected android.os.Parcelable |
onSaveInstanceState() |
protected void |
onSetInitialValue(boolean restoreValue,
Object defaultValue) |
void |
setChecked(boolean checked) |
void |
setDisableDependentsState(boolean disableDependentsState) |
void |
setSummaryOff(CharSequence summary) |
void |
setSummaryOff(int summaryResId) |
void |
setSummaryOn(CharSequence summary) |
void |
setSummaryOn(int summaryResId) |
boolean |
shouldDisableDependents() |
callChangeListener, compareTo, findPreferenceInHierarchy, findPreferenceInHierarchy, getContext, getDependency, getDependencyId, getEditor, getExtras, getFragment, getIcon, getIntent, getKey, getLayoutResource, getOnPreferenceChangeListener, getOnPreferenceClickListener, getOrder, getPersistedBoolean, getPersistedFloat, getPersistedFloatSet, getPersistedInt, getPersistedIntSet, getPersistedJSONArray, getPersistedJSONObject, getPersistedLong, getPersistedLongSet, getPersistedString, getPersistedStringSet, getPreferenceManager, getResId, getSharedPreferences, getShouldDisableView, getSummary, getTitle, getTitleRes, getView, getWidgetLayoutResource, hasKey, isEnabled, isPersistent, isSelectable, notifyChanged, notifyDependencyChange, notifyHierarchyChanged, onAttachedToActivity, onAttachedToHierarchy, onBindView, onCreateView, onDependencyChanged, onKey, onPrepareForRemoval, peekExtras, persistBoolean, persistFloat, persistFloatSet, persistInt, persistIntSet, persistJSONArray, persistJSONObject, persistLong, persistLongSet, persistString, persistStringSet, restoreHierarchyState, saveHierarchyState, setDefaultValue, setDependency, setDependency, setEnabled, setFragment, setIcon, setIcon, setIntent, setKey, setLayoutResource, setOnPreferenceChangeListener, setOnPreferenceClickListener, setOrder, setPersistent, setResId, setSelectable, setShouldDisableView, setSummary, setSummary, setTitle, setTitle, setWidgetLayoutResource, shouldCommit, shouldPersist, toStringpublic TwoStatePreference(android.content.Context context)
public TwoStatePreference(android.content.Context context,
android.util.AttributeSet attrs)
public TwoStatePreference(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle)
public boolean getDisableDependentsState()
public CharSequence getSummaryOff()
public CharSequence getSummaryOn()
public boolean isChecked()
protected void onClick()
onClick in class Preferenceprotected Object onGetDefaultValue(android.content.res.TypedArray a, int index)
onGetDefaultValue in class Preferenceprotected void onRestoreInstanceState(android.os.Parcelable state)
onRestoreInstanceState in class Preferenceprotected android.os.Parcelable onSaveInstanceState()
onSaveInstanceState in class Preferenceprotected void onSetInitialValue(boolean restoreValue,
Object defaultValue)
onSetInitialValue in class Preferencepublic void setChecked(boolean checked)
public void setDisableDependentsState(boolean disableDependentsState)
public void setSummaryOff(CharSequence summary)
public void setSummaryOff(int summaryResId)
public void setSummaryOn(CharSequence summary)
public void setSummaryOn(int summaryResId)
public boolean shouldDisableDependents()
shouldDisableDependents in class PreferenceCopyright © 2012-2013. All Rights Reserved.