I have made a custumlistview with personsname (col(0)), 2 checkboxes( p.LoadLayout("checkboxen")) and personid in col(4). When I read al the rows in the customlistview I get the personid with getvalue(x). So far good, but how can I read the personsname and de checks in the 2 checkboxes?
*********************************
CustomListView1.Add(CreateListItem(Col(0), CustomListView1.AsView.Width, 60dip),Col(4))
************************************
Sub CreateListItem(Text As String, Width As Int, Height As Int) As Panel
Dim p As B4XView = XUI.CreatePanel("")
p.SetLayoutAnimated(0, 0, 0, Width, Height)
p.LoadLayout("checkboxen")
Label1.Text = Text
Return p
End Sub
****************************
For x = 0 To CustomListView1.Size -1
Log( CustomListView1.GetValue(x)) ' = deelnemerID
-->>How to get the chk of the 2 checkboxes?? is my question
Next
***************************
*********************************
CustomListView1.Add(CreateListItem(Col(0), CustomListView1.AsView.Width, 60dip),Col(4))
************************************
Sub CreateListItem(Text As String, Width As Int, Height As Int) As Panel
Dim p As B4XView = XUI.CreatePanel("")
p.SetLayoutAnimated(0, 0, 0, Width, Height)
p.LoadLayout("checkboxen")
Label1.Text = Text
Return p
End Sub
****************************
For x = 0 To CustomListView1.Size -1
Log( CustomListView1.GetValue(x)) ' = deelnemerID
-->>How to get the chk of the 2 checkboxes?? is my question
Next
***************************