Hi,
I am using from many years in my published app the MaterialIcons-WebFont.txt (attached) which is added to the app files and then loaded in an internal map (key: name, object: icon) using this simple function:
after that a listview is filled with
the Listview is configured in the activity create as:
so really really simple and straightforward.
In all my phones and also in the past 4 years it worked just fine and the result (the picture just shows the first 4 icons and the first one name (the key):
now, one user sees this:
any idea? what could it be?
I am using from many years in my published app the MaterialIcons-WebFont.txt (attached) which is added to the app files and then loaded in an internal map (key: name, object: icon) using this simple function:
B4X:
Sub LoadData
NameToChar.Initialize
For Each line As String In File.ReadList(File.DirAssets, "MaterialIcons-WebFont.txt")
NameToChar.Put(line.SubString(1), line.CharAt(0))
Next
End Sub
after that a listview is filled with
B4X:
Sub UpdateList(init As Boolean)
Dim ii As Int
lstIcons.Clear
If init Then
For ii = 0 To NameToChar.Size-1
lstIcons.AddSingleLine(NameToChar.Get(ii))
Next
Else
For ii = 0 To FoundList.Size-1
lstIcons.AddSingleLine(NameToChar.Get(FoundList.Get(ii)))
Next
End If
End Sub
Code:
lstIcons.SingleLineLayout.Label.TextSize = 30
lstIcons.SingleLineLayout.ItemHeight = 45dip
lstIcons.SingleLineLayout.Label.Typeface = Typeface.LoadFromAssets("materialdesignicons-webfont.ttf")
so really really simple and straightforward.
In all my phones and also in the past 4 years it worked just fine and the result (the picture just shows the first 4 icons and the first one name (the key):
now, one user sees this:
any idea? what could it be?
Attachments
Last edited: