Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
3 votes
1 answer
251 views

I'm building an Android app using Jetpack Compose, and I want to display an animated GIF image. I added the GIF to my drawable folder and tried displaying it using the Image composable like this: ...
user avatar
0 votes
0 answers
36 views

I'm currently developing an Android application for my old Instant Lab, whose official app is no longer maintained and available on my phone. The goal of this application is to detect three touch ...
rolandl's user avatar
  • 1,907
0 votes
1 answer
298 views

I found a good tutorial on how to use an image as a mask, to allow a Composable to be in the shape of an image However, it seems to only be for ImageBitmap and I can't get it to work a ImageVector - ...
marq's user avatar
  • 818
3 votes
1 answer
1k views

I should use the Image() composable that takes image bitmap as its argument. How can I convert a Painter to ImageBitmap in Compose?
Mahozad's user avatar
  • 26.3k
1 vote
1 answer
111 views

In this Google Codelab (Mars Photos), while Coil is loading images, the app displays a progress wheel. The code uses this XML file as a drawable: and uses this code to display it: @Composable fun ...
BobDoolittle's user avatar
  • 1,892
2 votes
2 answers
5k views

Image( painter = painterResource(id = paymentCardLogoId), contentDescription = null, modifier = Modifier.size(logoSize) ) So I have a payment card details view and I am trying ...
oop's user avatar
  • 246
3 votes
1 answer
297 views

I have an image in Compose which may contain transparency. How can I show a checkered background behind the transparent parts of the picture (like in photoshop)?
Mahozad's user avatar
  • 26.3k
0 votes
1 answer
51 views

I'm trying to position elements in my Row like this: text first, immediately followed by an icon, and a second icon that should be nailed to the end (right edge). Here is a visual example of what it ...
testivanivan's user avatar
  • 1,544
3 votes
2 answers
7k views

I am using clip to trim an Image using Compose, to show only the left edge part of the image. But it maintains the width with blank space. How can I crop the right part(marked in red)? I tried ...
Basim Sherif's user avatar
  • 5,438
3 votes
1 answer
4k views

I'm trying to fetch image uri and then display it in my application with coil. var imageUri by remember { mutableStateOf<Uri?>(null) } val launcher = rememberLauncherForActivityResult(...
Equlo's user avatar
  • 197
6 votes
2 answers
6k views

I have hundreds of png files in assets folder and I want to load them into Image composable. But what I can use only images in drawable folder. how to load images from assets into Image?
Hadi Ahmadi's user avatar
  • 2,072
4 votes
2 answers
3k views

I have an animateDpAsState(..), whenever this animation is triggered it changes the Modifier.size(value) of an Image(...) thus causing recomposition. Is there a way to skip composition phase for this ...
Barrufet's user avatar
  • 292
3 votes
1 answer
879 views

I have a requirement to display different images based on certain user interactions. So, I'm storing the drawable resource ID in an integer variable. However, when I pass this variable into the Image'...
Varad G's user avatar
  • 112
1 vote
1 answer
1k views

When image bitmap is low quality I am able to load and display the image with coil but when image bitmap is very high quality the screen doesn't show anything and pressing back lets to crash the app. ...
Jeevan Rupacha's user avatar
2 votes
1 answer
647 views

I am trying to build a collapsing layout in jetpackCompose but couldn't figure it out how the lerp function is throwing up a error i am providing the specific size and float. Error say the following ...
Shiva s's user avatar
  • 917
1 vote
2 answers
2k views

I'm new to android compose. I want to put an image with borders that look like this code. preview image Column( verticalArrangement = Arrangement.Bottom, horizontalAlignment = Alignment....
Muhammad As'ad Muyassir's user avatar
1 vote
2 answers
980 views

I am currently playing with my old Instant Lab device and I am trying to recreate parts of the old app in jetpack compose. A feature of the device is to detect 3 touch points on the screen in order to ...
rolandl's user avatar
  • 1,907
3 votes
2 answers
3k views

Image( modifier = Modifier.size(100.dp).padding(16.dp), painter = rememberImagePainter( ImageRequest.Builder(LocalContext.current) // .data("https:/...
z.g.y's user avatar
  • 6,555
3 votes
1 answer
1k views

The Icon drawable inside the IconButton composable is black despite it being white. The picture below of the current setup shows the garbage can icon at the top right on an alpha background. How can I ...
Raj Narayanan's user avatar
0 votes
1 answer
3k views

The GlideImage composable in the Landscapist image loading library for Compose is missing the loading, success, and failure parameters, but the GitHub Readme for the library states these parameters ...
Raj Narayanan's user avatar
1 vote
1 answer
957 views

My Jetpack Compose camera app is targeting API Level 32 and is being tested on an Android 11 phone. I'm generating a Uri with FileProvider to take a photo with the stock camera app. Logcat shows the ...
Raj Narayanan's user avatar
2 votes
2 answers
4k views

I have a white arrow svg vector set in Image inside Box to which I want to add drop shadow so that it could be visible in white background too. Below is how it would look like: This is the arrow to ...
Sonu Sourav's user avatar
  • 3,604