CheckBox

A checkbox is a specific type of two-states button that can be either checked or unchecked.

Examples

An italian restaurant’s questionaire CheckBox example

<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

image

unsigned int

platform-default

Optionally define an alternative (stateful) image


Parts of this documentation are a derivate of the Android Developer Documentation by Google used under CC-BY-2.5.

results matching ""

    No results matching ""