Here is the following code from CustomlistView example. I am interested with Dim chk As B4XView = pnl.GetView(2).
In the cellitem designer, there appears 3 views (label, button and checkbox). How do i change the view index order of pnl.GetView(x)? Do i have to delete all of the views in the designer and choose the views to add in order of index? The properties does not have the index in the designer. Is there a simple way of doing this?
In the cellitem designer, there appears 3 views (label, button and checkbox). How do i change the view index order of pnl.GetView(x)? Do i have to delete all of the views in the designer and choose the views to add in order of index? The properties does not have the index in the designer. Is there a simple way of doing this?
B4X:
Sub CheckBox1_CheckedChange(Checked As Boolean)
Dim index As Int = clv2.GetItemFromView(Sender)
Dim pnl As B4XView = clv2.GetPanel(index)
Dim chk As B4XView = pnl.GetView(2)
MsgboxAsync($"Item value: ${clv2.GetValue(index)}
Check value: ${chk.Checked}"$, "")
End Sub