Sub RadioButton1_CheckedChange(Checked As Boolean)
Dim index As Int = CustomListView1.GetItemFromView(Sender)
Dim panel As B4XView = CustomListView1.GetPanel(index)
Dim n As Int
For Each x As B4XView In panel.GetAllViewsRecursive
If x Is CheckBox Then
Dim c As CheckBox = x
If c.Checked Then
n = n+1
End If
c.Checked=False
else if x Is EditText Then
Dim e As EditText =x
Log(e.Text)
e.Text= ""
End If
Next
Log($"number of chkbx that where checked ${n}"$)
panel.GetView(3).GetView(2).Checked= Not(panel.GetView(3).GetView(2).Checked) 'resets the radio button
'radio button is in 4th panel and is the 3rd view in that panel
End Sub