iOS Question TabBarItem with Icon

Nicolás Cieri

Active Member
Licensed User
Hi, I'm trying to add a tabbaritem with icon from fontawesome and it is working good.

But i need to add also a text.. icon with a simple text.


B4X:
    tbi1.Initialize(Chr(0xF1D7),Null,Null)
        tbi1.SetFont(Font.CreateNew2("FontAwesome", 35))
        tbi1.SetTitleOffset(0, 0)
        pg.TabBarItem = tbi1
 

Semen Matusovskiy

Well-Known Member
Licensed User
Your "icon" is not a bitmap. If you do not want to make png files, you can use a function, which converts a text to bitmap.
A sample is attached.
 

Attachments

  • ThreePages.zip
    114.1 KB · Views: 507
Upvote 0

Nicolás Cieri

Active Member
Licensed User
I had tried that, but it makes the text too big, because of the size required for the icon.
It would be to put a text with different sources, but I don't know if it's possible.
 
Upvote 0
Top