public interface

Checkable

android.widget.Checkable
Known Indirect Subclasses

Class Overview

Defines an extension for views that make them checkable.

Summary

Public Methods
abstract boolean isChecked()
abstract void setChecked(boolean checked)
Change the checked state of the view
abstract void toggle()
Change the checked state of the view to the inverse of its current state

Public Methods

public abstract boolean isChecked ()

Returns
  • The current checked state of the view

public abstract void setChecked (boolean checked)

Change the checked state of the view

Parameters
checked The new checked state

public abstract void toggle ()

Change the checked state of the view to the inverse of its current state