Android Question B4APreferenceDialog and CSBUILDER

mike1967

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

code:
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
 

Brian Dean

Well-Known Member
Licensed User
Longtime User
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:
    Dim tf As Typeface = Typeface.FONTAWESOME 'ignore

Hope this helps.
 
Upvote 0

mike1967

Active Member
Licensed User
Longtime User
same thing. the fontawesome icon is not displayed
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…