Android Question Define label with TypeFace FontAwesome or MaterialIcons in code?

mangojack

Well-Known Member
Licensed User
Longtime User
Upvote 0

diego

Member
Licensed User
Longtime User
I've also tried to modify the "text" of the label but unsuccessfully, if I use http://fontawesome.io/cheatsheet/ code or alias I get a label with that text.

B4X:
Select level
   case < 20
      'lblBat.Text = "fa-battery-1"
      lblBat.Text = "&#xf243;"
   ...
End Select
 
Upvote 0

diego

Member
Licensed User
Longtime User
solved with a workaround: several labels .visible = False and set one of them .visible = True.

thanks for the link, very useful!
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…