Added in API level 1
Deprecated in API level 29

CheckBoxPreference


open class CheckBoxPreference : TwoStatePreference
kotlin.Any
   ↳ android.preference.Preference
   ↳ android.preference.TwoStatePreference
   ↳ android.preference.CheckBoxPreference

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
Inherited constants
Public constructors

CheckBoxPreference(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

CheckBoxPreference(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int)

Protected methods
open Unit
onBindView(view: View!)

Binds the created View to the data for this Preference.

Inherited functions