Since: API Level 1
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 ()

Since: API Level 1

Returns
  • The current checked state of the view

public abstract void setChecked (boolean checked)

Since: API Level 1

Change the checked state of the view

Parameters
checked The new checked state

public abstract void toggle ()

Since: API Level 1

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