Android Question bbcodeview - 2 question

Gianni Sassanelli

Active Member
Licensed User
Longtime User
Hi
using bbcodeview class i have strange behaviour
1) usign Textsize with great values (30,35) with string that contain CRLF, the space betwheen rows is not the same for all rows
for example mystring is
B4X:
dim mystring as String 
mystring = $"[TextSize=25]questa è la mia prima riga che voglio formattare${CRLF}
questa è la mia seconda riga che voglio formattare${CRLF}
questa è la mia terza riga che voglio formattare${CRLF}
questa è la mia quartariga che voglio formattare${CRLF}
[/TextSize]"$

2) how to use with vertical align CENTER?

thanks
 

mcqueccu

Well-Known Member
Licensed User
Longtime User
2.
B4X:
dim mystring as String
mystring =$"[Alignment=Center][TextSize=25]questa è la mia prima riga che voglio formattare${CRLF}
questa è la mia seconda riga che voglio formattare${CRLF}
questa è la mia terza riga che voglio formattare${CRLF}
questa è la mia quartariga che voglio formattare${CRLF}
[/TextSize][/Alignment]"$
 
Upvote 0

William Lancee

Well-Known Member
Licensed User
Longtime User
Line spacing in codeview can be dynamic since it will accommodate larger objects(picture, icons, views) on a line.
See:

Vertical alignment on a panel is possible but with some thought. search for this.

I usually put a view tag with a panel as a space holder. Then adjust the height as needed.
 
Upvote 0

Gianni Sassanelli

Active Member
Licensed User
Longtime User
2.
B4X:
dim mystring as String
mystring =$"[Alignment=Center][TextSize=25]questa è la mia prima riga che voglio formattare${CRLF}
questa è la mia seconda riga che voglio formattare${CRLF}
questa è la mia terza riga che voglio formattare${CRLF}
questa è la mia quartariga che voglio formattare${CRLF}
[/TextSize][/Alignment]"$
but Alignment=Center is not for VERTICAL alignment?
 
Upvote 0

Gianni Sassanelli

Active Member
Licensed User
Longtime User
Line spacing in codeview can be dynamic since it will accommodate larger objects(picture, icons, views) on a line.
See:

Vertical alignment on a panel is possible but with some thought. search for this.

I usually put a view tag with a panel as a space holder. Then adjust the height as needed.
i William you say:
Vertical alignment on a panel is possible but with some thought. search for this.
have you forgot link?
 
Upvote 0
Top