Hello, i am trying to make a layout that have three views in each item of CLV and it's a CLVNested.
I did an example project to demonstrate that it's not working. Is there a way to do this with CLVNested ?
this is not working
B4X:
Sub Label1_Click
Dim index As Int = clvItem.GetItemFromView(Sender)
Log("label1: "&index)
End Sub
Sub Label2_Click
Dim index As Int = clvItem.GetItemFromView(Sender)
Log("label2: "&index)
End Sub
Thank you for your reply, i followed your suggest and i get this error
java.lang.Exception: Sub panelclickhandler signature does not match expected signature.
Assuming that your items layouts are not too complicated it should be quite simple. Something like:
B4X:
Dim pnl As B4XView = clvItem.GetPanel(Index)
For i = 0 To pnl.NumberOfViews - 1
Dim v As B4XView = pnl.GetView(i)
if v.Left <= offset And v.Left + v.Width >= offset Then
Log("This view")
End If