D DickD Active Member Licensed User Mar 20, 2017 #1 I have tried using the code below to add an icon to the activity.title but it doesn't work. The layout is created entirely in code. The layout FontAwesomeHidden has only a hidden button with typeface set to FontAwesome. Other FontAwesome icons work elsewhere in this same activity. Can this be done? Using B4A 6.50. Also, can fontawesome be added to titles in the Designer. This also did not work. Code: Copy Activity.LoadLayout("FontAwesomeHidden") Activity.Title = "Matches" & Chr(0xF039)
I have tried using the code below to add an icon to the activity.title but it doesn't work. The layout is created entirely in code. The layout FontAwesomeHidden has only a hidden button with typeface set to FontAwesome. Other FontAwesome icons work elsewhere in this same activity. Can this be done? Using B4A 6.50. Also, can fontawesome be added to titles in the Designer. This also did not work. Code: Copy Activity.LoadLayout("FontAwesomeHidden") Activity.Title = "Matches" & Chr(0xF039)
Erel B4X founder Staff member Licensed User Longtime User Mar 21, 2017 #2 Yes. But you need to use B4A v6.8+. Code: Copy Dim cs As CSBuilder cs.Initialize.Typeface(Typeface.FONTAWESOME).Color(Colors.Red).Append("Title: ") cs.Append(Chr(0xF17B)).PopAll Activity.Title = cs Upvote 0
Yes. But you need to use B4A v6.8+. Code: Copy Dim cs As CSBuilder cs.Initialize.Typeface(Typeface.FONTAWESOME).Color(Colors.Red).Append("Title: ") cs.Append(Chr(0xF17B)).PopAll Activity.Title = cs