Hi all, i have this problem, when i change listview with characters different i have this effect:
The original Code is this:
the first row as you see have different TTF another row (2,3, etc ) work ( as you see into picture ).
Second.. when i click top listview i have this code, and if you see i change TypeFace in stars.ttf:
But ths result is this:
also here the first row as you see have different TTF another row (2,3, etc ) work ( as you see into picture ).
Any idea ??
Thank you
Marco
![2aha5bq.png](/android/forum/proxy.php?image=http%3A%2F%2Fi58.tinypic.com%2F2aha5bq.png&hash=d64c331a8678f9d3417730f99b58ab1b)
The original Code is this:
B4X:
For i = 0 To COUNTRIES.Size - 1
m = COUNTRIES.Get(i)
'Setto Carattere
TimeFont = Typeface.LoadFromAssets("jurassic.ttf")
ListView1.TwoLinesAndBitmap.Label.Typeface = TimeFont
ListView1.TwoLinesAndBitmap.Label.TextColor = Colors.Black
ListView1.TwoLinesAndBitmap.Label.TextSize = 18dip
ListView1.TwoLinesAndBitmap.SecondLabel.TextColor = Colors.Black
ListView1.TwoLinesAndBitmap.SecondLabel.Typeface = Typeface.DEFAULT
ListView1.FastScrollEnabled = True
'ListView1.ScrollingBackgroundColor = Colors.black
'ListView1.Color = Colors.Black
ListView1.AddTwoLinesAndBitmap2(m.Get("genere"),"Totale: " & m.Get("totale") , LoadBitmap(File.DirAssets, m.Get("icona_barzelletta") ), m.Get("genere") )
Next
the first row as you see have different TTF another row (2,3, etc ) work ( as you see into picture ).
Second.. when i click top listview i have this code, and if you see i change TypeFace in stars.ttf:
B4X:
For i = 0 To COUNTRIES.Size - 1
m = COUNTRIES.Get(i)
'Setto Carattere
ListView1.TwoLinesAndBitmap.Label.Typeface = Typeface.DEFAULT
ListView1.TwoLinesAndBitmap.Label.TextColor = Colors.Black
ListView1.TwoLinesAndBitmap.Label.TextSize = 8dip
ListView1.TwoLinesAndBitmap.Label.Gravity = Gravity.TOP
TimeFont1 = Typeface.LoadFromAssets("stars.ttf")
ListView1.TwoLinesAndBitmap.SecondLabel.Typeface = TimeFont1
ListView1.TwoLinesAndBitmap.SecondLabel.TextColor = Colors.Red
ListView1.FastScrollEnabled = True
ListView1.AddTwoLinesAndBitmap2(m.Get("barzelletta"), m.Get("voto"), LoadBitmap(File.DirAssets, m.Get("icona_barzelletta") ), m.Get("id") )
Next
But ths result is this:
![11ce8uf.png](/android/forum/proxy.php?image=http%3A%2F%2Fi57.tinypic.com%2F11ce8uf.png&hash=ec9dd4090733beb4ad8588cbfcbcd169)
also here the first row as you see have different TTF another row (2,3, etc ) work ( as you see into picture ).
Any idea ??
Thank you
Marco