Example usage for Java android.widget ToggleButton fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | isChecked() |
boolean | performClick() |
void | setBackgroundDrawable(Drawable d) |
void | setChecked(boolean checked) |
void | setOnCheckedChangeListener(@Nullable OnCheckedChangeListener listener) Register a callback to be invoked when the checked state of this button changes. |
void | setTextOff(CharSequence textOff) Sets the text for when the button is not in the checked state. |
void | setTextOn(CharSequence textOn) Sets the text for when the button is in the checked state. |