Comments (7)
Some questions:
What device are you finding this on? What url/image are attempting to load?
from accompanist.
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.
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.
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.
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.
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.
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)
- [WebView] Question about backwards writes HOT 5
- Vector animation is broken with newer libraries HOT 5
- False positive deprecation message on pagerTabIndicatorOffset variant HOT 2
- onPermissionsResult isn't triggered on POST_NOTIFICATIONS permission request (API 33). HOT 2
- [Test Harness] Deprecate with replacement of `DeviceConfigurationOverride`
- Incorrect deprecation of pagerTabIndicatorOffset HOT 2
- [Permissions] Gradle update crashing permission request and the app HOT 8
- Crash when using ProgressIndicator with `accompanist-permissions` 0.34.0 HOT 1
- [Navigation Material] Crash in BottomSheetNavigator when user goes back HOT 3
- [Navigation Material] Status bar not scrimmed when bottom sheet is shown HOT 1
- [LazyColumn] scroll observation scope does not exist HOT 3
- [Feature request] LazyTable with nested scrolling support HOT 1
- [Navigation Material] Edge to edge jumping bug when migrating from 1.1.2 to 1.2.0. HOT 1
- [Navigation Material] BackHandler is not triggered after Activity stop+start HOT 1
- [Navigation Material] DisposableEffect onDispose is not called at the right time for bottom sheet HOT 1
- [Navigation Material] Add deprecated to main README
- [Adaptive]
- accompanist-drawablepainter: PictureDrawable doesn't scale HOT 1
- BottomSheetNavigator#NullPointerException HOT 1
- [Webview] fit parent width issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from accompanist.