LucaMs Expert Licensed User Longtime User May 20, 2024 #1 Left-aligned text in a Label is too close to the edge (maybe touching it). It would be useful to be able to set the padding of the B4XViews.
Left-aligned text in a Label is too close to the edge (maybe touching it). It would be useful to be able to set the padding of the B4XViews.
aeric Expert Licensed User Longtime User Jun 11, 2026 #2 I can cast the B4XView as native view such as Label, EditText or Button. B4X: Private lblTitle As B4XView lblTitle.SetColorAndBorder(xui.Color_White, 1dip, Globals.COLOR_PRIMARY, 5dip) lblTitle.As(Label).Padding = Array As Int (20dip, 10dip, 10dip, 10dip)
I can cast the B4XView as native view such as Label, EditText or Button. B4X: Private lblTitle As B4XView lblTitle.SetColorAndBorder(xui.Color_White, 1dip, Globals.COLOR_PRIMARY, 5dip) lblTitle.As(Label).Padding = Array As Int (20dip, 10dip, 10dip, 10dip)