Wish NB6 Fontawsome Support in buttons

Addo

Well-Known Member
Licensed User
Longtime User
it will be a great addition to support fontawesome in NB6 Text. i tried csBuilder to pop a text with fontawesome icon but it shows square..


B4X:
    Dim n As NB6
    Dim notifcation_img As Bitmap
    Dim csPlay As CSBuilder
    notifcation_img = LoadBitmapResize(File.DirAssets, "NbIcon_white.png", 24dip, 24dip, False)
    csPlay.Initialize
    csPlay.Typeface(Typeface.FONTAWESOME)
    csPlay.BackgroundColor(Colors.Transparent)
    csPlay.Append(Chr(0xF04B)) ' it doesnt show the icon  just square
    
    n.Initialize("default", Application.LabelName, "LOW").SmallIcon(notifcation_img)
    n.Visibility("PUBLIC")
    n.AddButtonAction(Null, csPlay.PopAll,Me, "Play")

since using images on add images to the buttons action aren't visible so its better to use font awesome icons instead.
 
Top