Summary:
XML Attrs
| Inherited XML Attrs
| Inherited Constants
| Ctors
| Protected Methods
| Inherited Methods
CheckBoxPreference
public
class
CheckBoxPreference
extends TwoStatePreference
| java.lang.Object | |||
| ↳ | android.preference.Preference | ||
| ↳ | android.preference.TwoStatePreference | ||
| ↳ | android.preference.CheckBoxPreference | ||
This class was deprecated
in API level 29.
Use the AndroidX
Preference Library for consistent behavior across all devices. For more information on
using the AndroidX Preference Library see
Settings.
A Preference that provides checkbox widget
functionality.
This preference will store a boolean into the SharedPreferences.
Summary
XML attributes | |
|---|---|
android:disableDependentsState |
The state (true for on, or false for off) that causes dependents to be disabled. |
android:summaryOff |
The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is unchecked. |
android:summaryOn |
The summary for the Preference in a PreferenceActivity screen when the CheckBoxPreference is checked. |
Inherited XML attributes | |
|---|---|