Android Question optimize LoadLayout

Roberto P.

Well-Known Member
Licensed User
Longtime User
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.

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
 

DonManfred

Expert
Licensed User
Longtime User
or there are other ways to speed up the loading
Dont load such much data. No one can see all at once on the screen. Probably better use a paginating view of 20 of them or so...
or you can load 20 more items when reaching the end of list (maybe removing items at the beginning then...)
 
Upvote 0

Roberto P.

Well-Known Member
Licensed User
Longtime User
Hi DonManfred
My user wants to see a complete list !!! up to 200 elements, the loading is very fast, then it slows down very
 
Upvote 0

Dey

Active Member
Licensed User
Longtime User
Hi DonManfred
My user wants to see a complete list !!! up to 200 elements, the loading is very fast, then it slows down very
search
ULTIMATELISTVIEW ULV
I am using very fast
Greetings

scusa visto ora che sei Italiano
vedi la libreria che ti ho elencato è veramente potente x 20€ ne vale la pena
Saluti
 
Upvote 0

Roberto P.

Well-Known Member
Licensed User
Longtime User
Ciao Dey,
allora ti rispondo in Italiano, sperando di non far arrabbiare qualcuno! Apprezzo il tuo consiglio, non avevo ancora visto questa libreria, mi fido. Vedo molti esempi. Ti manda anche i sorgenti?
grazie
 
Upvote 0

Dey

Active Member
Licensed User
Longtime User
Ciao Dey,
allora ti rispondo in Italiano, sperando di non far arrabbiare qualcuno! Apprezzo il tuo consiglio, non avevo ancora visto questa libreria, mi fido. Vedo molti esempi. Ti manda anche i sorgenti?
grazie
ti manda librerie ed esempi niente sorgenti, ma il sistema su cui si basa è intelligente e molto potente, se no ricordo male trovi una serie di apk funzionanti per capire la potenzialità
 
Upvote 0

Roberto P.

Well-Known Member
Licensed User
Longtime User
thanks Erel,
It can be a good solution. I have to synchronize the scrolling bar with records read.

An example would be helpful.

Thank you
 
Upvote 0
Top