iOS Question FA icons in buttons

Tomas Petrus

Active Member
Licensed User
Longtime User
I am adding FA icons to barbuttons in the code.

some works Chr(0xF279), Chr(0xF1ba)

some dont... like:Chr(0xF095), Chr(0xF098)
I see questionmark instead of phone icon

why is that ?
 

Tomas Petrus

Active Member
Licensed User
Longtime User
Erel, I dont understand the answer, I read this before (maybe I missed something ?)

B4X:
    bbt1.InitializeText( Chr(0xF279) & " " & Config.fin.b1, "Mapa")
    bbt1.SetFont(Font.CreateNew2("FontAwesome", 16))
    bbt2.InitializeSystem(bbt3.ITEM_FLEXIBLE_SPACE,"")
   
    bbt3.InitializeText( Chr(0xF1ba) & " " & Config.fin.b2, "Objednavka")
    bbt3.SetFont(Font.CreateNew2("FontAwesome", 16))
    bbt4.InitializeSystem(bbt5.ITEM_FLEXIBLE_SPACE,"")
   
    bbt5.InitializeText( Chr(0xF098) &  " " & Config.fin.b6, "Volat")
I believe the code is right... but the last button defies me and refuse to show icon.. I just see square with "?" What am I missing ?
 
Upvote 0

Tomas Petrus

Active Member
Licensed User
Longtime User
well sorry you right I didnt pay attention.

anyway problem found...

B4X:
bbt5.SetFont(Font.CreateNew2("FontAwesome", 16))
was missing ....

But I dont understand why I should use CreateFABarButton it just seem to me that it is doing the same thing as I am doing just with more code : ) what are the advantages ? or posible problems with my implementation ?

I believe that I have learned this way of doing it in the beginners guide
 
Upvote 0
Top