Step 1: Add a label named lblFontAwesome with the designer. Set its Typeface to FontAwesome and make it invisible.
Step 2: Use the code editor Icon Picker to add the icons (right click to find it):
B4X:
TabStrip1.LoadLayout("Page1", "iOS " & Chr(0xF179))
TabStrip1.LoadLayout("Page2", "Android " & Chr(0xF17B))
TabStrip1.LoadLayout("Page3", "Windows " & Chr(0xF17A))
TabStrip1.LoadLayout("Page4", "" & Chr(0xF061))
Step 3: Set the typeface of the TabStrip header labels to FontAwesome:
B4X:
For Each lbl As Label In GetAllTabLabels(TabStrip1)
lbl.Typeface = Typeface.FONTAWESOME
Next
Code for GetAllTabLabels is available here: https://www.b4x.com/android/forum/t...ger-better-viewpager.63975/page-2#post-408977
It depends on JavaObject and Reflection libraries.
Last edited: