I can load the file named by LoadLayout in a cache or variable to avoid load on each cycle and speed up the creation of large lists?
For example, I need to load a list (about 1500) elements of panels in a CustomListView.
or there are other ways to speed up the loading without adding the controls by hand?
Thanks
For example, I need to load a list (about 1500) elements of panels in a CustomListView.
B4X:
For i = 0 To aRecTask.RowCount - 1
aRecTask.Position = i
' pannello cliente
Dim pTask As Panel
pTask.Initialize("")
pTask.LoadLayout("frmInterventiRowList")
' assign value...
' aggiungo il pannello alla vista e gli passo il codice del cliente per poterlo richiamare con il click
m_clvInterventi.Add(pTask, GetHeightPannelTask, aRecTask.GetLong("ID"))
Next
or there are other ways to speed up the loading without adding the controls by hand?
Thanks