This library will allow you to use FontAwesome on any view that supports Typeface (except Spinner).
Requirements:
1- B4A 4.x.
2- Copy the FontAwesome.xml and FontAwesome.jar to your additional libraries directory.
Usage:
That's it!!
Notes:
* If an icon isn't defined the library will show a "?" or a blank-square (get all the defined icons by name and their numbers from the Cheat Sheet)
Screenshot:
Requirements:
1- B4A 4.x.
2- Copy the FontAwesome.xml and FontAwesome.jar to your additional libraries directory.
Usage:
B4X:
'Initialize the library.
Private FA As FontAwesome
FA.Initialize
'Add the FontAwesome typeface to your view.
Label1.Typeface = FA.FontAwesomeTypeface
'Select the icon you want to display.
Label1.Text = FA.GetFontAwesomeIconByName("fa-android") & " Some title label " & FA.GetFontAwesomeIconByNumber(0xf15d)
Notes:
* If an icon isn't defined the library will show a "?" or a blank-square (get all the defined icons by name and their numbers from the Cheat Sheet)
Screenshot:
Attachments
Last edited: