Android Question xui and customlistvview - alternate row -

Gianni M

Well-Known Member
Licensed User
Longtime User
i use :
B4X:
Sub Process_Globals
Private xArt As CustomListView
end SUb
and fill xArt
B4X:
'.....
'.......
dim myheight as int=40dip
Dim p As B4XView = xui.CreatePanel("")
'...........
'..................
p.SetLayoutAnimated(0,0,0,xArt.AsView.Width,myheight)
xArt.Add(p,blc)
and lazy loading / virtualization
B4X:
Sub xArt_VisibleRangeChanged (FirstIndex As Int, LastIndex As Int)
'...........
'...........
End Sub
Screenshot_20180718-105324.png

now i want insert a SMALL CAPITAL LETTER every time that changes initial of description.
example:
ABACO
ABETE
BANANA
BARATTOLO
BAZAR
CASA
CIPREZZO
CHIODO
CRUDO
and so on
 
Top