Sub listview_show
Dim a = "aaaaaa" As String
For i = 1 To 10
CustomListView1.Add(add_row("custom view","default view",i),a)
Next
End Sub
Sub add_row(a1 As String,a2 As String,i As Int) As B4XView
Dim xui As XUI
Dim p As B4XView = xui.CreatePanel("")
p.SetLayoutAnimated(0,0,0,100%x,60dip)
p.LoadLayout("main_listview")
blabel1.Text = a1 ' set thte label text
Label1.Text = a2 ' set the 2nd label text
Label1.Tag = i
Return p
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub CustomListView1_ItemClick (Index As Int, Value As Object)
Msgbox("customview click event run","")
End Sub
Sub blabel1_Click
Log($"blabel1_Click"$)
Dim lbl As blabel = Sender
Dim p As Label = lbl.GetBase.GetView(0)
Log(p.tag)
End Sub