Skip to content

Image Gallery Preloader Issues #14084

@Informate

Description

@Informate

I have searched and made sure there are no existing issues for the issue I am filing

  • I have searched the existing issues

Description

I am creating an Image Gallery with remote images using ImageView.
I have a local default image to show while images are loading.
I am preloading the image to speed up the gallery swiping.
To preload the images I put them in an ImageView with {visibility: false, width: 0, height: 0}, in this way when I call them they should be already cached and show up immediately when I change the image in the original gallery image. (gallery.image=...)

Maybe this is just the wrong way to do it and I have to use separate ImageView and do not reuse the same object.
I am not posting the code because it is very complex.

This happens on Android, still not tested on iOS (Maybe changing approach and will never be test).

Expected Behavior

The images appears correctly.

Actual behavior

While the images are loading if I swipe to an another image the default image do not shows up and the image is partially shown without the not loaded part.

Reproducible sample

x

Steps to reproduce

x

Platform

Android & iOS

SDK version you are using

12.3.0

Alloy version you are using

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds triageThis issue hasn't been reviewed by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions