One of my students wants to create a “list of images”, i.e. any number of images (add new ones) that should be displayed in a scrollable list.
I found the following link but I do not have the context (e.g. Image.Picture of component).
Could you please give me a hint how to get such a list of pictures?
What is different, is he shows how to swipe the screen.
He/she can get a scrollable list that can identify any one image in a List by creating a Project that uses a ListView component. The ListView would o display the List of images (image1.png; image2.png etc.) but not the images themselves and use its properties to select which image to display in an Image component.
You might discus further with the student about what he/she would like to do and why.
Adding images is more complex. How it is done depends on where the images are stored (on the Internet, on a Google Drive etc.) or whether he/she uses a Camera to create new images. The images here are stored in Media. That means, a user cannot increase the number.
Use the File extension (as indicated above) to call back all directories with images (that is as unlimited as it gets on the device - if you want more e.g. google images, then a different approach is required)
Yes, I understand that I can load any number of images (and scroll through the filenames stored in a list).
But as I understand it, I cannot scroll through the images (only one by one; not one fling that displays more and more images / thumbnails as in commercial gallery apps).
My student has implemented the one picture - one fling strategy.
However, she would prefer to have what I described previously: sort of a canvas larger than the screen with lots of photos (say 6x4 pictures visible) and than scroll / fling once to see all hidden pictures appearing (it keeps scrolling and gently slows down if you do not stop it by touching the screen).
Is it a lot of work for you to show us how this could be done (extension or javascript)? I guess learning a little bit of javascript would be a good experience for her.