In my iOS app, which I'm porting to Android/B4X, I have a custom list view, containing panels of filter options. Each one has a text view and a switch. I can easily reset all filters to the default with this code:
For i = 0 To userFilter.GetSize -1
Dim p As Panel = userFilter.GetPanel(i)...