coil Questions

3

Solved

I have a pager (Accompanist) with image that are get from web with Coil in Compose. The rememberPainter() seem to only call the request when the Image composable is shown for the first time. So whe...
Underlay asked 16/10, 2021 at 17:29

1

I use Coil to load .svg resources from the web, for example: @Composable fun Widget(modifier: Modifier = Modifier) { AsyncImage( modifier = Modifier.fillMaxSize(), model = ImageRequest.Builder(L...

4

Solved

I'm implementing a simple gallery screen using Jetpack Compose which shows all video and image thumbnails on the screen I have displayed image from file path successfully. However, I've got trouble...
Municipalize asked 27/9, 2021 at 2:1

2

Solved

I want to load a bitmap from URL and then use palette API to get some colors from that. On the documentation page, I cannot find the code for getting bitmap directly! Can anyone help me out?
Demetricedemetris asked 19/5, 2020 at 13:30

2

New to Jetpack Compose and Coil, but not new to Android or Java/Kotlin. I'm not able to show images from a URL...Something basic missing? I took the Google/Android tutorial from (https://developer....
Photography asked 6/5, 2022 at 20:8

4

Solved

I am developing an android app using the Jetpack Compose with Coil ImageLoader library. It shows a user's profile image. I receive the profile data from the API. GET: /users/{userId} The response c...
Christcross asked 15/2, 2022 at 1:58

11

Solved

I am working on a Jetpack Project which downloads an image from API using Coil Library. I have confirmed that valid image URLs and related data are being returned from the API call successfully. I ...
Drue asked 11/6, 2022 at 8:11

1

Loading an image from a web URL and displaying a shimmer during load. Are there any better ways to handle this? val context = LocalContext.current val imageLoader = ImageLoader(context) val reques...
Unhorse asked 16/2, 2022 at 3:40

2

Solved

I need to show a custom placeholder in Jetpack Compose using Coil, but that placeholder is not a drawable, it is a composable function that I customized. Is it possible to do this with the Coil? Th...
Beaverboard asked 3/11, 2021 at 0:46

4

Solved

I'm trying to create a PDF viewer composable using the PdfRenderer and Coil for loading the bitmaps into a LazyColumn. This is what I got so far: @Composable fun PdfViewer( modifier: Modifier = Mo...
Lemur asked 12/11, 2021 at 12:46

2

I am trying to import the coil image library inside a composable function using import coil.compose.AsyncImage and implementation("io.coil-kt:coil:2.2.2") but Android Studio can't recogni...
Pragmatics asked 13/10, 2022 at 7:11

5

How to show a progress bar while fetching image from URL in Coil.?
Handclasp asked 26/8, 2021 at 12:16

3

Solved

I'm failing to load this image in Image using Coil in Jetpack Compose
Breland asked 30/9, 2021 at 8:16

3

Solved

I want to load a local image file using Coil into a Jetpack Compose Image, but searching has produced only methods using web urls or by passing files converted to bitmaps. Can Coil load a local ima...
Kamakura asked 13/9, 2021 at 8:43

1

Solved

I have this image I want to load, I am using coil in jetpack compose to try and load it yet it didn't load and just gave me an empty composable. Whenever I try to load a different image from any ot...
Embower asked 20/12, 2022 at 1:15

3

Solved

I use Coil along with Compose. And I'm trying to make a shimmer animation while the image is loading. All examples use ImagePainter with ImagePainter.State and it works correctly, but this is now m...
Anfractuous asked 10/10, 2022 at 0:6

1

Solved

I'm trying to get two images from an url and then I have a Composable that needs two bitmaps to draw them in a Canvas, I've tried it but the canvas don't get painted am I missing something? val ove...

2

Solved

I'm working on an Android app using Jetpack Compose 1.0.0 and I'm trying to make a composable that uses a nullable image URL string and, if it's null, it will show a placeholder with painterResourc...
Piecework asked 6/8, 2021 at 18:17

1

Solved

I am unable to achieve the grayscale transformation. Current code to load Image. AsyncImage( model = ImageRequest.Builder(LocalContext.current) .data(url) .crossfade(true) .build(), contentDes...
Wreathe asked 21/8, 2022 at 18:26

4

Solved

I recently migrated from Accompanist's ImagePainter to Coil's, below is the pertinent code after my updates. val painter = rememberImagePainter(DRAWABLE_RESOURCE_ID) when (painter.state) { is Ima...

1

Solved

I have a tough task in hand to achieve in Jetpack Compose. The idea is, I have a Row, that has two Image views as children. And when I load the images, one image might be shorter than the other one...
Tearful asked 24/7, 2022 at 16:41

2

Solved

I am using coil(version 2.1.0) to load images from URL. When there is network connection, the images are loading fine. However, when there is no network connection, the images are not being pulled ...

3

Solved

I am loading a photo into a Image with Jetpack Compose and Coil. I want to show a loading indicator when image is loading, that replaces the picture while it loads. However I can't manage to figure...
Teador asked 2/7, 2022 at 16:18

4

Solved

I am trying to show an image with fill width and auto height using Jetpack Compose Coil. I want the image to take the full width and auto height. But the image only showing when I specify a fixed h...
Karrah asked 24/8, 2021 at 13:14

1

Solved

Let say i have image components can show image from selected image from gallery; @Composable fun ClickableToGalleryImage() { var imageUri by remember { mutableStateOf<Uri?>(null) } val la...
Deloris asked 27/5, 2022 at 12:44

© 2022 - 2024 — McMap. All rights reserved.