Hi, I am declaring a label as such:
I would like to align text to the top programmatically in the code, since the label isn't added with the designer, so I don't have that option in the designer.
Do you know how to align the text without the designer?
Thank you,
Kind regards
B4X:
Dim TextTrending As Label
TextTrending.Initialize("TextTrending")
TextTrending.Text = "Trending"
TextTrending.Padding = Array As Int (0dip, 0dip, 0dip, 0dip)
TextTrending.Gravity = Gravity.TOP
I would like to align text to the top programmatically in the code, since the label isn't added with the designer, so I don't have that option in the designer.
Do you know how to align the text without the designer?
Thank you,
Kind regards