Android Question [XUI] Labels with gravity?

wimpie3

Well-Known Member
Licensed User
Longtime User
Hi there,

I want to create cross platform labels programmatically. The problem is that as soon as I try to use the Gravity property, this doesn't seem to work (Gravity is not a property of B4Xview).

So how can I create cross platform label which supports gravity?
 
Solution
I would use B4XViews with SetTextAlignment which is cross-platform.

From the inline help.

1646985508457.png

wimpie3

Well-Known Member
Licensed User
Longtime User
@klaus that sounds like the best solution. How should I dim this label? Simply
B4X:
Dim label as B4XView
right?
 
Upvote 0

wimpie3

Well-Known Member
Licensed User
Longtime User
Unfortunately this doesn't seem to work correctly for b4i ("the vertical alignment has no effect" according to the popup help)
 
Upvote 0
Top