added in version 24.1.0
belongs to Maven artifact com.android.support:preference-v7:28.0.0-alpha1
belongs to Maven artifact com.android.support:preference-v7:28.0.0-alpha1
Summary:
Inherited XML Attrs
| Inherited Constants
| Fields
| Ctors
| Methods
| Protected Methods
| Inherited Methods
| [Expand All]
TwoStatePreference
public
abstract
class
TwoStatePreference
extends Preference
java.lang.Object | ||
↳ | android.support.v7.preference.Preference | |
↳ | android.support.v7.preference.TwoStatePreference |
![]() |
Common base class for preferences that have two selectable states, persist a boolean value in SharedPreferences, and may have dependent preferences that are enabled/disabled based on the current state.
Summary
Inherited XML attributes | |
---|---|
![]()
android.support.v7.preference.Preference
|
Inherited constants |
---|
![]()
android.support.v7.preference.Preference
|
Fields | |
---|---|
protected
boolean |
mChecked
|
Public constructors | |
---|---|
TwoStatePreference(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
|
|
TwoStatePreference(Context context, AttributeSet attrs, int defStyleAttr)
|
|
TwoStatePreference(Context context, AttributeSet attrs)
|
|
TwoStatePreference(Context context)
|
Public methods | |
---|---|
boolean
|
getDisableDependentsState()
Returns whether dependents are disabled when this preference is on ( |
CharSequence
|
getSummaryOff()
Returns the summary to be shown when unchecked. |