Hi devs,
In my B4J project I have a layout applied to a CustomListView item panel.
In the layout I defined a button with a bottom-right anchor.
When the item is programmatically added to the list the button is not bottom-right aligned.
It goes in the right place only if I resize the form.
The code where the item is created:
Should I call a resize programmatically? And how?
Thanks in advance,
Christian
In my B4J project I have a layout applied to a CustomListView item panel.
In the layout I defined a button with a bottom-right anchor.
When the item is programmatically added to the list the button is not bottom-right aligned.
It goes in the right place only if I resize the form.
The code where the item is created:
B4X:
Private Sub CreateListItem(document As Document) As B4XView
Dim p As B4XView = xui.CreatePanel("")
p.SetLayoutAnimated(0, 0, 0, 0, 120)
p.LoadLayout("cellitem")
Label1.Text = DateUtils.TicksToString(document.Date)
lblDescription.Text = document.Description
Return p
End Sub
Should I call a resize programmatically? And how?
Thanks in advance,
Christian