Hi,
It's the first time I used LoadLayoutArray and I cannot make it working.
I do like this:
But I always got an error:
The layout is like this:
The sample project:
It's the first time I used LoadLayoutArray and I cannot make it working.
I do like this:
B4X:
Dim i As Int
For i=0 To 10
Dim elt As BANanoElement = SKContainer1.Element
Dim index As Long = elt.LoadLayoutArray("myItem", False)
Dim views As Map = BANano.GetAllViewsFromLayoutArray(Me, "myItem", index)
Dim lbl As SKLabel = views.Get("sklabel1")
lbl.Text = "Label " + index
Dim btn As SKButton = views.Get("skbutton1")
btn.Text = "Button " + index
Next
But I always got an error:
The layout is like this:
The sample project: