Git Product home page Git Product logo

Comments (7)

chrisbanes avatar chrisbanes commented on March 28, 2024

Some questions:

What device are you finding this on? What url/image are attempting to load?

from accompanist.

ensozos avatar ensozos commented on March 28, 2024

We've tested this on 2 old devices, Xiaomi Redmi 3 and ZTE Nubia Z11 Max.
We tried several URL/images such as "https://source.unsplash.com/pGM4sjt_BdQ" (from Jetsnack sample) or load from the asset folder. Also, we found out that the images are getting loaded correctly when the main activity is restarted (pressing the home button and open via recent).

from accompanist.

chrisbanes avatar chrisbanes commented on March 28, 2024

Just ran out tests and sample app on API 21-24 emulators and everything is working as expected. I don't have those devices so there's not much else I can do to help unfortunately.

Is anything coming up in logcat?

from accompanist.

ensozos avatar ensozos commented on March 28, 2024

No, we are not getting errors in logcat. The image state is ImageLoadState.Success, but it isn't displayed on the screen. We have also found that the images are displayed if you add a ScrollableRow with CoilImages and scroll or click the row. I believe that this has something to do with the Focus or the Recomposer, not directly with the Coil library.

from accompanist.

chrisbanes avatar chrisbanes commented on March 28, 2024

Are you using fadeIn = true? Maybe it's an animation bug (try turning it off if so).

Does the following work?

CoilImage(...) { imageState ->
    when (imageState) {
        is ImageLoadState.Success -> {
            Image(painter = imageState.painter)
        }
        else -> Unit
    }
}

from accompanist.

ensozos avatar ensozos commented on March 28, 2024

Are you using fadeIn = true?

We do not use fadeIn or any other animation on the app.

Does the following work?

It does not work. The only way to make this work is if remove the AndroidViewBinding(ContentMainBinding::inflate) (remove fragment integration) and call the Composables from the MainActivity.

from accompanist.

chrisbanes avatar chrisbanes commented on March 28, 2024

Sounds like a bug to me then on AndroidViewBinding. Raise a bug on the tracker?

I'll close this for now, since I don't think there's anything actionable for this library.

from accompanist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.