I have a Custon List Viewer with an Image Viewer and several Labels, everyone over a Panel. My CLV has about 40 panels like that.
Now I need to click over some Image Viewer and catch the contents of every Label inside the same Panel. I couldn't find any
information about this important operation. How can I get it ?
I presume you have at least followed the example code ... (you have a reference to XUI lib and views declared as B4XView)
1. If your views are directly added to items Layout ...
B4X:
Sub ImageView1_Click
Dim index As Int = clv1.GetItemFromView(Sender)
Dim pnl As B4XView = clv1.GetPanel(index)
pnl.GetView(1).Text = "ABC" 'view(1) = 2nd view on panel
pnl.GetView(2).Text = "123" 'view(2) = 3rd view
End Sub
2. if your views are added to a Panel in items Layout ...
B4X:
Sub ImageView1_Click
Dim index As Int = clv1.GetItemFromView(Sender)
Dim pnl As B4XView = clv1.GetPanel(index)
Dim pnl2 As B4XView = pnl.GetView(0)
pnl2.GetView(1).Text = "ABC" '2nd view
'..........................................
Refer to Designer > View Tree to determine the Views(index)