Android Question Set some words to bold in a label

GaNdAlF89

Active Member
Licensed User
Longtime User
Hi!! I have a label with long text, in which some words must be in bold style. How can I do this? Thanks!
 

GaNdAlF89

Active Member
Licensed User
Longtime User
I solved with Richstring!
B4X:
Dim rs As RichString
rs.Initialize(STR2)
rs.Style(Typeface.STYLE_BOLD,20,26) '20-26 is the position of word I want to set in bold style

Labeltxt.Text = rs
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top