B4X:
Mnu_List.Add(MenuListItems("asd",Mnu_List.AsView.Width, 60dip),60dip,1)
Sub MenuListItems (Text As String, Width As Int, Height As Int, Value As Object) As Panel
Dim p As Panel
p.Initialize("")
p.Color = Colors.White
p.SetLayout(0,0,Width,Height)
p.LoadLayout("test_menuitems")
mnu_lbl.Text = Text
Value = Value
Return p
End Sub
Im having error in the Value part