Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Methods](https://developer.android.com/reference/android/widget/Checkable#pubmethods)

# Checkable

*** ** * ** ***

` public interface Checkable `   
` `

|---|
| android.widget.Checkable |

Known indirect subclasses [CheckBox](https://developer.android.com/reference/android/widget/CheckBox), [CheckedTextView](https://developer.android.com/reference/android/widget/CheckedTextView), [CompoundButton](https://developer.android.com/reference/android/widget/CompoundButton), [RadioButton](https://developer.android.com/reference/android/widget/RadioButton), [Switch](https://developer.android.com/reference/android/widget/Switch), [ToggleButton](https://developer.android.com/reference/android/widget/ToggleButton) [CheckBox](https://developer.android.com/reference/android/widget/CheckBox) A checkbox is a specific type of two-states button that can be either checked or unchecked.
[CheckedTextView](https://developer.android.com/reference/android/widget/CheckedTextView) An extension to `https://developer.android.com/reference/android/widget/TextView` that supports the `https://developer.android.com/reference/android/widget/Checkable` interface and displays. [CompoundButton](https://developer.android.com/reference/android/widget/CompoundButton) A button with two states, checked and unchecked.
[RadioButton](https://developer.android.com/reference/android/widget/RadioButton) A radio button is a two-states button that can be either checked or unchecked.
[Switch](https://developer.android.com/reference/android/widget/Switch) A Switch is a two-state toggle widget. [ToggleButton](https://developer.android.com/reference/android/widget/ToggleButton) Displays checked/unchecked states as a button with a "light" indicator and by default accompanied with the text "ON" or "OFF".   

*** ** * ** ***

Defines an extension for views that make them checkable.

## Summary

| ### Public methods ||
|---|---|
| ` abstract boolean` | ` https://developer.android.com/reference/android/widget/Checkable#isChecked()() ` |
| ` abstract void` | ` https://developer.android.com/reference/android/widget/Checkable#setChecked(boolean)(boolean checked) ` Change the checked state of the view |
| ` abstract void` | ` https://developer.android.com/reference/android/widget/Checkable#toggle()() ` Change the checked state of the view to the inverse of its current state |

## Public methods

### isChecked

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract boolean isChecked ()
```

<br />

<br />

| Returns ||
|---|---|
| `boolean` | The current checked state of the view <br /> |

### setChecked

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void setChecked (boolean checked)
```

Change the checked state of the view

<br />

| Parameters ||
|---|---|
| `checked` | `boolean`: The new checked state <br /> |

### toggle

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void toggle ()
```

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

<br />