Android Question xCustomlistview lazy loading + download images

yiankos1

Active Member
Licensed User
Hello my friends,
I use this xCustomlistview with lazy loading in order to make a dates app using timeline. I would like to know if is it possible to achieve image download and add them to a specific item when CLV1_VisibleRangeChanged sub called. I need this, in order to show user's profile image at dates timeline.

p.s. i need a b4x solution thats why picasso lib does not fit here
 

yiankos1

Active Member
Licensed User
Don't use lazy loading for the cells layouts
Firstly i would like to thank you for that quick answer. I have a question about don't using lazy loading. It is a timeline, so i don't know the exact amount of posts that a user will see. If i create all of them and just add them at xCLV, most likely throw an OOM error and listview will not be smooth.
What is your opinion about this?

OR

do you just mean, don't use lazy loading for downloading images? If you mean this, do you think there is a mess about lazy loading and downloading images with a service?
 

Erel

Administrator
Staff member
Licensed User
Top