![]() |
Selecting iPhone & Android and pushing DISPLAY ⇒ |
![]() |
Checkbox
in your layout.
Because a set of checkbox options allows the user to select multiple items, each checkbox is managed separately and you must register a click listener for each one.
CheckBox
object receives an on-click event.
To define the click event handler for a checkbox, add the android:onClick
attribute to the CheckBox
element in your XML layout.
The value for this attribute must be the name of the method you want to call in response to a click event.
The activity hosting the layout must then implement the corresponding method.
However, this example uses another approach.
|
||||||||||||||||||||||||||||||||||||
|
Legally you can argue that it’s all according to Hoyle (according to plan or the rules). |