Category "android-jetpack-compose"

Jetpack Compose take screenshot of composable function?

I want to take screenshot of specific composable function on Jetpack Compose. How can I do this? Please, anyone help me. I want to take screenshot of composable

Jetpack compose onClickLabel for Button and IconButton

Working on accessibility enhancements for my app. From Docs, I can see that Card has both onClick and onClickLabel as part of the API. And for composables witho

How to remove padding between AlertDialog and title/text with Compose

Using compose, I want to create something like this : Problem is using compose AlertDialog I only achieve to get this : There is a padding between the AlertDi

LazyColumn with header item in card and remaining items in card

Using compose LazyColumn I would like a card for the header item, and a single card that contains the remaining items. LazyColumn() { item { Card() { // h

How to remove padding between AlertDialog and title/text with Compose

Using compose, I want to create something like this : Problem is using compose AlertDialog I only achieve to get this : There is a padding between the AlertDi

What is the better or easier way to create "nested" menus in Jetpack Compose?

So in XML you were able to structure menu items and nest them like this. But in jetpack compose, I am unable to figure out how this would work. I already read

Wrong ripple in material3 NavigationBar in Jetpack Composee

When I use Material3 NavigationBar in Jetpack Compose I get wrong rectangular ripple effect like this: Material3 library version: 1.0.0-alpha06 Code: Navigatio

How to tell the composeTestRule to wait for the navhost transition?

I'm trying to write an integration test for an Android application entirely written in Compose that has a single Activity and uses the Compose Navigation to cha

How to store data in Jetpack Compose Desktop?

I am creating an application in Jetpack Compose Desktop which will take user input and after user reopens the application that input value should be there. I me

compose NavHost Start the white Screen

My app starts with navigation globally, but I found that when I set the following code, the app will remain blank after startup unless I manually touch the scre

Jetpack Compose recomposition animation

Is there any easy way to animate Composables appearing/hiding? I tried to implement this using AnimatedVisibility and AnimatedContent, but in my particular case

Layout inspector not showing composables tree

When I use Layout Inspector in a running compose app on a device, I do not obtain the composables tree but the view system tree. How to see the composables tree

Jetpack Compose Change Slider Thumb Size

Is there any way to change slider thumb size? I think for now we can only manipulate colors var sliderPosition by remember { mutableStateOf(0f) } Text(text = sl

Android Compose: draw transparent circle on image

I have an image and I want to draw dark rectangle over it with a transparent circle, so the result will be something like this: I have ended up with this code:

How to make Dialog re-measure when a child size changes dynamically?

I implemented a simple dialog with Jetpack Compose on Android. I am trying to show a caution message when isRehearsal is true. The variable isRehearsal is toggl

Jetpack Compose navigation: login screen and different screen with bottom navigation

My goal is to to have a LoginScreen from which I can navigate to an InternalScreen. The InternalScreen should have/be a bottom navigation bar that can navigate

Compose's "AndroidView"'s factory method doesn't recall when "remember" value change

I've an AndroidView on my UI and I'm creating a custom view class using factory scope. And I've remember value above my android view which is changing by user a

How can I add a stickyHeader to LazyVerticalGrid like LazyColumn in jetpack compose?

I want to achieve a UI effect like this: <GridView> <Title of Grid content in a single row /> <Grid content arranged in the form of n * 3

How to change Jectpack Compose BasicTextField's text color?

I'm trying to make a search bar using BasicTextField. The default text color is black and I couldn't find any option to change the text color. Also I need to ch

How to display .svg Image URL in JetPack Compose? [duplicate]

I have svg image Url, I want to display the image in Jetpack Compose.