Category "android-jetpack-compose"

An alternative solution to set negative padding values in Jetpack Compose? (java.lang.IllegalArgumentException: Padding must be non-negative)

I'm trying to assign a negative value to the padding modifier but the app had crashed. Have a look at my code. Thanks if you can help or give me an alternative

Jetpack Compose Scrollbars

Is there any way to add Scrollbars to add LazyColumn (ScrollableColumn is deprecated). The Javadoc doesn't mention anything about Scrollbars in Jetpack Compose.

What is the difference between "remember" and "mutableState" in android jetpack compose?

I'm new in jetpack compose and trying to understand the difference between remember and mutableStateOf In other words the deference between this line val text

Jetpack Compose Desktop switch to new window

Hey I'm pretty new to Kotlin and am trying my hand at a GUI as my first small project. For this I am using Jetpack Compose Desktop. I have already written a fir

Jetpack compose Google Maps does not load properly when using bottom navigation

I have been stuck on this all day. I am using the official jetpack compose google maps composable. The map is displayed on one tab of my bottom navigation. I ha

Play video from URI in Jetpack Compose android

I am trying to play a video which user selects from file explorer. Then it should open and start video as expected and as shown in below tutorial. But there is

Match Width of Parent in Column (Jetpack Compose)

By default, Column {} has the width of it's largest child element. How can I make all other elements to fit the width of the parent Column? If I use Modifier.fi

Match Width of Parent in Column (Jetpack Compose)

By default, Column {} has the width of it's largest child element. How can I make all other elements to fit the width of the parent Column? If I use Modifier.fi

how to make cursor on BasicTextField be centered on jetpack compose?

I have a problem, where I need a BasicTextField to customize the TextField as I want. Here I have tried to do a custom, but there is a problem with the cursor i

how to make cursor on BasicTextField be centered on jetpack compose?

I have a problem, where I need a BasicTextField to customize the TextField as I want. Here I have tried to do a custom, but there is a problem with the cursor i

jetpack compose: @Preview is unresolved after updating to alpha08

I updated compose libraries from alpha07 to alpha08 version = "1.0.0-alpha08" androidx.compose.ui:ui:$version androidx.ui:ui-tooling:$version But after that an

How to update jetpack compose slider state outside of the slider

So, I'm using the Jetpack compose for my app and I have a state with a float value in the viewModel. This value can be updated outside of the slider; but also f

Interaction jetpack compose with bluetooth library

how to use Android Bluetooth api in jetpack compose ? compose need state and Bluetooth api has not compostable function .i mean how to instance state for Blueto

Recompose in Android Compose

I was implementing the outlinedTextField in android using new compose library. But strangely the input data was not updating in the text field. So I searched an

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