Android Question [b4X] [SOLVED] BBLabel line spacing

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
I am using BBLabel to display formatted text.

I am getting different effects on iOS and Android.

iOS Output

1632301949502.png


Android Output
1632302028045.png


Relevant code:
B4X:
    lblWarning.Text = $"[TextSize=${Globals.StdFontSize}][Alignment=Left][Color=#${Misccode.ColorToHex(Globals.gcol_sectext).substring(2)}][Font=MainFont]"$
    lblWarning.Text = lblWarning.Text & $"${Globals.loginwarning}"$   
    lblWarning.Text = lblWarning.Text & $"[/Font][/Color][/Alignment][/TextSize]"$

I have tried to strip to label down to the minimum.
I have tried using Vertical, but it has no effect.

Anyone have any ideas?

Thanks
 

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
The textengine seems to have 2 properties:

SpaceBetweenLines and SpaceBetweenCharacters but there is no documentation on how these should be used.
 
Upvote 0

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
Here is an example. Displaying as a BBLabel or a CSString

I am targetting a tablet so I am using the 800 x 1280 standard variant. (No other variants in the app)

The output is:

1632383190048.png


edit: Has to reduce the size of the Attachment as it was too large.
 

Attachments

  • BBLabelSpacing.zip
    340 KB · Views: 235
Upvote 0
Top