Android Question B4APreferenceDialog and CSBUILDER

mike1967

Active Member
Licensed User
Longtime User
Hello I Trye this code:

Code: Copy
Dim cs As CSBuilder
    Dim l As List
    l.Initialize
    cs.Initialize.Typeface(Typeface.FONTAWESOME).Append(Chr(0xF270)).Pop.Append(" Test ").PopAll
    l.Add(cs)
    PrefDialog.AddOptionsItem("key","Choice a item",l)
    Dim sf As Object =PrefDialog.ShowDialog(dispositivo, "Ok", "Cancella")

In the showed Dialog the FontAwesome is not displayed.
Is possible to show a fontawesome icon in options item of a b4a preferencedialog ? thanks in advances
 
I had a similar problem to this, with FontAwesome not showing up in a dialogue, but I also had the error "Font asset not found ...".

If this is the same problem then there are two fixes. Either add the FontAwesome font to your Assets folder, or include this statement in Sub Globals ...
B4X: Copy
    Dim tf As Typeface = Typeface.FONTAWESOME 'ignore

Hope this helps.
 
Upvote 0
I had a similar problem to this, with FontAwesome not showing up in a dialogue, but I also had the error "Font asset not found ...".

If this is the same problem then there are two fixes. Either add the FontAwesome font to your Assets folder, or include this statement in Sub Globals ...
B4X: Copy
    Dim tf As Typeface = Typeface.FONTAWESOME 'ignore

Hope this helps.
same thing. the fontawesome icon is not displayed
 
Upvote 0
Back
Top