I want to add a layout with button to listview this is my code
project added
B4X:
Private Sub Button1_Click
Dim p As LayConta
p.Initialize
B4XPages.AddPage("lay1",p)
B4XPages.ShowPage("lay1")
p.Btnmsg.Tag="Hellow B4A"
'********************************************
Dim addtolv As B4XView
addtolv = xui.CreatePanel("")
addtolv.Color=Colors.Transparent
addtolv.SetLayoutAnimated(100,0,0,Root.Width,Root.Height/3 )
'****************************************************************************
Dim lv1 As lv
lv1.Initialize
B4XPages.AddPage("lv1",lv1)
' B4XPages.ShowPage("lv1")
'****************************************************************************
Dim lv1 As lv = B4XPages.GetPage("lv1")
lv1.Initialize
addtolv.LoadLayout("Lay")
lv1.CustomListView1.Add(addtolv,"")
End Sub
project added