https://www.b4x.com/android/forum/threads/b4x-xui-customlistview-lazy-loading-virtualization.87930/
I need to change the source images from the program's internal file to the database
You try
However, in all records, the image of the last record shall be returned
And you change this as well
Thank
B4X:
Dim bitmaps As List = Array("pexels-photo-446811.jpeg", "pexels-photo-571195.jpeg", _
"pexels-photo-736212.jpeg", "pexels-photo-592798.jpeg")
I need to change the source images from the program's internal file to the database
You try
However, in all records, the image of the last record shall be returned
B4X:
Dim COUNTRIES As List
COUNTRIES = parser.NextArray 'returns a list with maps
For i = 0 To COUNTRIES.Size - 1
' dim aa as li
Dim m As Map
m = COUNTRIES.Get(i)
pec1 = m.Get("pec1")
Buffer= su.DecodeBase64(pec1)
InputStream1.InitializeFromBytesArray(Buffer, 0, Buffer.Length)
Bitmap2.Initialize2(InputStream1)
InputStream1.Close
Dim cd As CardData
cd.Initialize
cd.BitmapFile = Bitmap2'bitmaps.Get((i - 1) Mod bitmaps.Size)
Dim p As B4XView = xui.CreatePanel("")
p.SetLayoutAnimated(0, 0, 0, CLVShowAll.AsView.Width, 110dip)
Sleep(20)
CLVShowAll.Add(p, cd)
'CLVShowAllValue=cd.TimeCar
'Next
Next
B4X:
Type CardData ( BitmapFile As Bitmap)
Thank