Stay organized with collections Save and categorize content based on your preferences.
added in version 24.1.0
belongs to Maven artifact


public class CheckBoxPreference
extends TwoStatePreference


A Preference that provides checkbox widget functionality.

This preference will store a boolean into the SharedPreferences.


Inherited XML attributes

From class

Inherited constants

From class

Inherited fields

From class

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

From class
From class
From class java.lang.Object