I wanted to get a layout approximately correct using the designer. I have 5 sets of views in one area.
I wanted to set the layout correctly in code.
so I did this
But I found I had to do this
which partly defeats my plan.
Obviously I can add the labels and other views programmatically, but is there a way to assign arrays of views in a declaration?
I wanted to set the layout correctly in code.
so I did this
B4X:
Private arDay() As Label = Array As Label(lblDay0, lblDay1, lblDay2, lblDay3, lblDay4)
But I found I had to do this
B4X:
Private arDay(5) As Label
'then
arDay(0)initialize("")
arDay(0) = lblDay0
which partly defeats my plan.
Obviously I can add the labels and other views programmatically, but is there a way to assign arrays of views in a declaration?