
/
CheckBox
A checkbox is a specific type of two-states button that can be either checked or unchecked.
![]() | ![]() |
iOS | Android |
Usage
An italian restaurant's questionaire
<CheckBox checked="#{likePizza}" text="I like Pizza" />
<CheckBox checked="#{likeSpaghetti}" text="I like Spaghetti" />
<CheckBox checked="#{likeLasagne}" text="I like Lasagne" />
Attributes
Name | Type | Default | Binding | Description |
---|---|---|---|---|
Inherits all attributes from TextView and adds the following: | ||||
checked | boolean | false | input/output | Bindable checked state of the box |
color | color | gray | output | The color of the checked box |
Parts of this documentation are a derivate of the Android Developer Documentation by Google used under CC-BY-2.5.