Android Question [B4X] BCTextEngine - How to center text

DonManfred

Expert
Licensed User
Longtime User
how can i center the text for example in the BBCodeLabel
[center][/center]is not working btw: Error (position - 0): Invalid tag: center
[Alignment] - Changes the horizontal alignment. One of the following values: Left, Right or Center.

B4X:
[Alignment=Center][TextSize=20][b][u]This is the title [FontAwesome=0xF034/] [FontAwesome=0xF035/][/u][/b][/TextSize][/Alignment]
B4X:
[Alignment=Left][TextSize=20][b][u]This is the title [FontAwesome=0xF034/] [FontAwesome=0xF035/][/u][/b][/TextSize][/Alignment]
B4X:
[Alignment=Right][TextSize=20][b][u]This is the title [FontAwesome=0xF034/] [FontAwesome=0xF035/][/u][/b][/TextSize][/Alignment]
 
Upvote 0
Top