Push-buttons can be pressed by the user to perform an action.
Attributes
text - to put a text label in the button
foreground - to set the colour or image for the
button foreground (the whole button)
background - to set the colour or image for the
button background (the whole button)
ImageButton
Displays a button with an image (instead of text).
Seems less useful than a normal Button with a specified
background, because the latter gets scaled.
RadioButton
A radio button is a two-states button that can be either checked
or unchecked.
When the radio button is unchecked, the user can press or click
it to check it.
Knows it's own state.
Radio buttons are normally used together in a RadioGroup.
When several radio buttons live inside a radio group, checking one
radio button unchecks all the others.
Attributes
checked indicates that radio button is on.
ToggleButton
Displays checked/unchecked states as a button with a "light"
indicator.
Knows it's own state.
Attributes
textOn and textOff are the button texts
for the on and off states.
checked is a Boolean that indicates that the button
is on (default false).
CheckBox
A two-state button that can be either checked or unchecked.
Knows it's own state.
Attributes
text - text that is written next to the button.
checked is a Boolean that indicates that the button
is checked (default false).
ImageView
Displays an arbitrary image, scaled appropriately.