Android Question BBLabel strange behaviors (padding, alignment, etc)..

Emme Developer

Well-Known Member
Licensed User
Longtime User
Hi to all! I'm trying to use BBLabel and BBCodeView but i got strange behaviors, and i don't understand some things.
1) Is padding working in BBLabel and BBCodeView? I tried to se it by using this code, also i tried to add before and after set the text, in both case doesn't do nothing..
B4X:
Private BBLabelText As BBLabel   
BBLabelText.Text = $"[Color=#ffffff][Alignment=Center][font=frank size=30]hiii[/font][/Alignment][/Color]"$
BBLabelText.Padding.Initialize(24dip,0,0,8dip)
Maybe can be the custom font? (I add it in customfonts, but i did not write the code

2) I tried a BBLabel and a BBCodeView with same text as write in previous code. I noticed that BBLabel'text is vertical centered, BBCodeView's text no. I tried to set text alignment in designer property, without success

3) Is there a way to center vertical the text? I know there is vertical offset, but the height of the view is setted dinamically

Thanks to all
 

Emme Developer

Well-Known Member
Licensed User
Longtime User
Upvote 0
Top