Benefits of using coil for bundled images #1387
-
If I want to show a bundled image (i.e. We have a rather long onboarding in our app in a ViewPager with lots of images in there and I want to remove some lags when swiping to the next page likely caused by image loading and rendering. Those images are all bundled with the app. Would using coil improve the situation in such a case? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It should; Compose's built-in |
Beta Was this translation helpful? Give feedback.
It should; Compose's built-in
Image
decodes the image on the main thread. It's the same forImageView.setImageResource
when using views.AsyncImage
moves all the work to a background thread, which will reduce UI lag.