B4J Question [XUI] xCustomListView: Set Alignment?

LWGShane

Well-Known Member
Licensed User
Longtime User
Is it possible to set the alignment (Left, Center, Right) of the items in "xCustomListView"?
 

LucaMs

Expert
Licensed User
Longtime User
It would be possible but only by modifying xCustomListView.

You should create a panel within the panel which will "be the item" and align the first one.

Something like (not tested, pseudo-code, written here right now):
B4X:
xCLV.Add(CreateItem(...), ItemValue)

B4X:
Sub CreateItem(...) As Panel
    Dim pnlItem As Panel
    pnlItem.Initialize...
...
    Dim pnlInternal As Panel
    pnlItem.AddView(pnlItnternal... ' <--- align it
...

    Return pnlItem
End Sub
 
Upvote 0
Top