Android Question I have more than 500 images I want to display as pages - Load lazy

alfaiz678

Active Member
Licensed User
I have more than 500 images I want to display as pages
Do I find an example
On AsviewPager

Load lazy
and thank you
 

Alexander Stolte

Expert
Licensed User
Longtime User
In the attachment is an example project. I have 500 pages that are not loaded at the same time thanks to LazyLoading.
The images are downloaded from this website:

Make sure you have ASViewPager V1.29
 

Attachments

  • ASViewPager Photo Album.zip
    10.6 KB · Views: 130
Last edited:
Upvote 1

AnandGupta

Expert
Licensed User
Longtime User
WOW! Never knew there can be a "Lorem Picsum for photos" ! Thanks for the lead 🙏

Is there any site to get 'list of random people names, places names, random furniture/fruits/objects list, etc. ? Many times I need them to fill my demo data/visuals.
 
Upvote 0

alfaiz678

Active Member
Licensed User
Welcome Alexander Stolte
When downloading pages and can be 500 pages
The problem is
It's when jumping by order for the last page
B4X:
ASViewPager1.CurrentIndex2=ASViewPager1.Size-1
Then move between pages they get random in download
1646316674744.png


This is an example of pages that are repeated

You find in the Green box that has been jumped
From page 604 to 596 randomly without taking into account
 

Attachments

  • 1646316523588.png
    1646316523588.png
    8 KB · Views: 98
Last edited:
Upvote 0

alfaiz678

Active Member
Licensed User
The same problem is still
Note I do I import photos from the DirAssets folder

I need to jump to another page
After load pages directly
Because I want to start navigation between the pages from the right
 
Upvote 0

alfaiz678

Active Member
Licensed User
Well, in every jump or move between pages, I need to give an order. commit
I'll try it.
Thank you for your interaction.
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
Well, in every jump or move between pages, I need to give an order. commit
Actually no, but you can also add a modul variable if you have problems with it and when you change the index you set it to false and once your index is changed you set it to true and call commit so that the lazy loading event is triggered.
 
Upvote 0
Top