Sub btnList_Click
For i = 0 To CustomListView1.Size - 1
Dim cd As CellData = CustomListView1.GetValue(i)
Dim value1, value2 As String
If cd.IsVisible = False Then
value1 = cd.Field1
value2 = cd.Field2
Else
'we need to get the values from the views
Dim content As B4XView = CustomListView1.GetPanel(i).GetView(0)
value1 = content.GetView(0).Text
value2 = content.GetView(1).Text
End If
Log($"Value1: ${value1}, Value2: ${value2}"$)
Next
End Sub