i am creating items like following
i am trying to set some items visible to False how can i do that programmatically based on items index ?
B4X:
Sub CreateListItem(Text As String, Width As Int, Height As Int) As Panel
Dim p As Panel
p.Initialize("")
p.SetLayout(0, 0, Width, Height)
p.LoadLayout("cellitem")
label1.Text = " Name "
labelnumber.Text = "100 "
Return p
End Sub
i am trying to set some items visible to False how can i do that programmatically based on items index ?