1. Add a reference to XmlLayoutBuilder.
2. Add this code to the manifest editor:
CreateResource(layout, checkbox,
<CheckBox xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/chk1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:button="@null"
android:drawableRight="?android:attr/listChoiceIndicatorMultiple"
android:tag="chk1" />
)
3. Add one or more panels with the designer as the checkboxes parents.
4.
Sub Globals
Private chk1 As CheckBox
Private Panel1 As Panel
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("1")
Dim xml As XmlLayoutBuilder
xml.LoadXmlLayout(Panel1, "checkbox")
chk1 = xml.GetView("chk1")
chk1.Text = "sdfsdfklj"
End Sub
Sub chk1_CheckedChange(Checked As Boolean)
Log(Checked)
End Sub