Hi all,
i've created a listview and populate with anchorpanes, when i enlarge the form listview enlarge all items, when i scale down the form, the listview items not resizing keep the last width.
Tested using this example by adding some anchorpanes for which resizing of the form works fine.
The listview is added using the B4J Internal Designer.
The listview horz & vert anchors are set to both!
B4X:
Private listviewMain As ListView
...
For i = 0 To 100
Dim ap As AnchorPane
ap.Initialize("ap")
CSSUtils.SetBorder(ap,5,fx.Colors.Blue,5)
listviewMain.Items.Add(ap)
Next
Then try, like below: Load the layout aplayout.bjl in a pane which is added to the anchorpane - then the anchors are set for pane child of the anchorpane.
B4X:
For ...
Dim ap As AnchorPane
ap.Initialize("ap")
Dim p As Pane
p.Initialize("p")
p.LoadLayout("aplayout")
ap.AddNode(p,0,0,-1,50)
ap.SetAnchors(p,0,0,0,0)
listviewMain.Items.Add(ap)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.