I was doing some tests on SSM, I entered the load of a hundred items using VisibleRangeChanged.
I have this code:
I have tried on different devices, but the effect is always the same, loads a certain number of items (from device to device they change), and some are not loaded.
For example in the movie the item:
6,7,8 are not loaded, then after 7 items it repeats
15,16,17 are not loaded, then after 7 items it repeats
24,25,26 are not loaded, then after 7 items it repeats
....
In attachment example
Any idea ?
Thank you
I have this code:
B4X:
Sub clv_VisibleRangeChanged (FirstIndex As Int, LastIndex As Int)
For Each i As Int In PCLV.VisibleRangeChanged(FirstIndex, LastIndex)
Dim item As CLVItem = clv.GetRawListItem(i)
Dim pnl As B4XView = xui.CreatePanel("")
item.Panel.AddView(pnl,0,0, item.Panel.Width, item.Panel.Height)
Dim mappa As Map = item.Value
pnl.LoadLayout("lay_clv_dentro")
Log($"${mappa.Get($"caricoitem${i}"$)}"$)
lbl_item.Text = $"${mappa.Get($"caricoitem${i}"$)}"$
'or
'pnl.GetView(3).Text = $"${mappa.Get($"caricoitem${i}"$)}"$
' 'Foto Normal
MediaManager.SetMedia(Panel1, $"${mappa.Get("foto")}"$)
' 'Foto Round
Dim extra As Map = CreateMap(MediaManager.REQUEST_ROUNDIMAGE: True, MediaManager.REQUEST_BACKGROUND: xui.Color_Transparent, MediaManager.REQUEST_RESIZE_MODE: "FILL_WIDTH")
MediaManager.SetMediaWithExtra(Panel2, $"${mappa.Get("foto")}"$, "", extra)
' 'Movie
MediaManager.SetMedia(Panel3, $"${mappa.Get("filmato")}"$)
Next
End Sub
I have tried on different devices, but the effect is always the same, loads a certain number of items (from device to device they change), and some are not loaded.
For example in the movie the item:
6,7,8 are not loaded, then after 7 items it repeats
15,16,17 are not loaded, then after 7 items it repeats
24,25,26 are not loaded, then after 7 items it repeats
....
In attachment example
Any idea ?
Thank you