CheckBoxPreference

public class CheckBoxPreference
extends TwoStatePreference

java.lang.Object
   ↳ androidx.preference.Preference
     ↳ androidx.preference.TwoStatePreference
       ↳ androidx.preference.CheckBoxPreference


A Preference that provides checkbox widget functionality.

This preference saves a boolean value.

Summary

Inherited constants

Inherited fields

Public constructors

CheckBoxPreference(Context context, AttributeSet attrs, int defStyleAttr)
CheckBoxPreference(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
CheckBoxPreference(Context context, AttributeSet attrs)
CheckBoxPreference(Context context)

Public methods

void onBindViewHolder(PreferenceViewHolder holder)

Binds the created View to the data for this preference.

Inherited methods