(re: related thread: https://www.b4x.com/android/forum/threads/fontawesome-icons-in-buttons.80993/ )
I had an issue where FontAwesome icons that looked great in Designer:
were not displaying in the actual program:
and what I eventually tracked it down to was a programming...
This sub will let you use icon fonts as bitmaps
Sub FontBit (icon As String, font_size As Float, color As Int, awesome As Boolean) As Bitmap
If color = 0 Then color = Colors.White
Dim typ As Typeface = Typeface.MATERIALICONS
If awesome Then typ = Typeface.FONTAWESOME
Dim bmp As...
What am I doing wrong ?
I have a button with the TypeFace set to FontAwesome in the designer that displays an icon ("Play icon").
When the users presses the button the icon should change to a pause icon, so I use this code:
If PlayBack1.IsRunning = True Then...