Java android.preference TwoStatePreference fields, constructors, methods, implement or subclass

Example usage for Java android.preference TwoStatePreference fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.preference TwoStatePreference.

The text is from its open source code.

Method

voidsetChecked(boolean checked)
Sets the checked state and saves it to the SharedPreferences .
voidsetEnabled(boolean enabled)
Sets whether this Preference is enabled.
voidsetOnPreferenceChangeListener(OnPreferenceChangeListener onPreferenceChangeListener)
Sets the callback to be invoked when this Preference is changed by the user (but before the internal state has been updated).
voidsetSummary(CharSequence summary)
Sets the summary for this Preference with a CharSequence.