Where is the code to add the CustomListView?
(lbl can be a name for a label. edt should be better )
CustomListView is added just by the Designer (Private cv As CustomListView) and all other for the dynamical use is already shown in the code above.
Other work is by checking the checkboxes state:
B4X:
Dim L As List
L.Initialize
For i = 0 To cv.GetSize - 1
Dim pnl As Panel = cv.GetPanel(i)
Dim chk As CheckBox = pnl.GetView(0)
If chk.Checked Then
L.Add(i)
End If
Next