Android Question Using smart strings for Label or Button text

mscientist33

Active Member
Licensed User
B4X:
Label1.text=$"[Alignment=center][TextSize=20][b][color=0xff006688]"${rs.GetString("Title")}"[/color][/b]  [/TextSize][/Alignment]"$

The label text actually show $"[Alignment=center][TextSize=20][color=0xff006688]Hello World[/color] [/TextSize][/Alignment]"$

Can we use smart strings in this way for labels and buttons etc?
 

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
You need to assign that string to a BBLabel.

 
Upvote 1

mscientist33

Active Member
Licensed User
I understand that cs builder can do it mostly but i'm wanting to know if it is possible to use smart strings. They are much much easier.
 
Upvote 0

mscientist33

Active Member
Licensed User
The question is really about BBCode, which is the format used by BCTextEngine and its views: BBCodeView, BBLabel, BBListItem, BCToast and maybe others.
So with normal buttons, labels etc we are to use cs builder. This is what I take the answer is.
 
Upvote 0
Top