Android Question Center text in label

Giusy

Active Member
Licensed User
Hi,
I write this code:
B4X:
lbl.Initialize("Label")
        lbl.Text="AAAAAAAAAAA" & i
        lbl.Typeface= Typeface.DEFAULT_BOLD
        lbl.TextSize=20
        lbl.SingleLine=True
        lbl.TextColor= Colors.RGB(0,0,128)
        lbl.Color=Colors.RGB(219,221,222)

Which instruction should I use to center the text?
Thank you
 
Top