Android Question xcustomlistview lazy loading

RUNO

Active Member
Licensed User
Longtime User
Hello evrybody
I have an app to display products from a database, but when I download the data, it shows products without images for some products at the beginning of the list and only shows an image of one product for the rest of the products.
Attached is my code in one of the examples from the forum. Can anyone tell me where is the error?
 

mangojack

Expert
Licensed User
Longtime User
No need to Initialize views if there are loaded from a layout ... (CLV iteminfo)

A few changes have been made ... but still some display improvements to be done. (a bit slow on the initial loading)

Possibly get the initial items data first ( then load to CLVList) ... unsure why loading is slow ... how large are the images ?
 

Attachments

  • CLVList 2.zip
    13 KB · Views: 185
Upvote 0

Mahares

Expert
Licensed User
Longtime User
A few changes have been made
I tried to run your project without tampering with it mj, but immediately I get this error:
ResponseError. Reason: java.net.UnknownHostException: Unable to resolve host "omj2020.com": No address associated with hostname, Response:

0
 
Upvote 0

mangojack

Expert
Licensed User
Longtime User
@Mahares ... Have no idea. The only changes were to how the initial list display was loaded . Try @RUNO 's example.
 
Upvote 0

RUNO

Active Member
Licensed User
Longtime User
No need to Initialize views if there are loaded from a layout ... (CLV iteminfo)

A few changes have been made ... but still some display improvements to be done. (a bit slow on the initial loading)

Possibly get the initial items data first ( then load to CLVList) ... unsure why loading is slow ... how large are the images ?

Images not large 200x200 or less and size less than 30 MB
 
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
It can be useful

 
Upvote 0
Top