Sub CreateListItem(Text As String, Width As Int, Height As Int) As Panel
Dim p As Panel
p.Initialize("")
p.Color = Colors.Transparent
Dim chk As CheckBox
chk.Initialize("chk")
Dim lbl As EditText
lbl.Initialize("lbl")
lbl.InputType = lbl.INPUT_TYPE_NONE
lbl.Text = Text
lbl.TextSize = 16
lbl.TextColor = Colors.Black
lbl.SingleLine = False
p.AddView(chk, 0, (Height-30dip)/2, 30dip, 30dip) 'view #0
p.AddView(lbl, chk.Width, 2dip, Width - chk.Width, Height) 'view #1
Return p
End Sub