Category "android-jetpack-compose"

How to disable copy/paste/cut in a TextField Jetpack Compose?

I'm trying to find a simple solution on how to disable copy/paste/cut in a TextField. I did come across a couple of question but no answer.

Compose-Navigation: Remove previous composable from stack before navigating

I'm using compose-navigation(alpha09) to handle the navigation between composables I want to remove the Splash screen when moving to the next destination (I don

LazyList memory leak in Jetpack Compose

I found out that LazyList generates memory leaks. When I scroll down to the bottom of the list memory usage by my app increases by ~3MB. After I scroll up and u

Jetpack compose - how do I refresh a screen when app returns to foreground

I need to automatically refresh an Android Compose screen when the app returns to the foreground. I have an that requires permissions and location services. If

Jetpack Compose Place every question in it's own screen

I have a JSON data looking like this questions: [ { id: "1", question_type: "FREE_TEXT", answer_type: "SINGLE_LINE_TEXT", question_text: "what's your name?", op

Create vertical chain with respect to other element in jetpack compose ConstraintLayout?

I want to chain title and description text centered with respect to image with chainStyle.Packed how to achieve this in jetpack compose. when i use createVertic

Text Composable dimensionResource not working as fontSize parameter

When I plug in fontSize = dimensionResource(id = R.dimen.textLabelTextSize) where the dimens or 54sp or 60sp depending on the device, I get an error on Text() "

How to do Assisted Injection with Navigation Compose?

I've a composable called ParentScreen and a ViewModel named ParentViewModel. Inside the ParentViewModel, I am collecting a value from my repo. class MyRepo @Inj

Is it possible to pass Android Composables as an array?

In the example below I can pass several composables as a function to a Column. Is it possible to pass them in any other way? Ideally, as an array of composables

Create chip with outline Jetpack Compose

I have the following composable function to build a Chip: @Composable fun CategoryChip( category: String, isSelected: Boolean = false, onSelectedCategoryC

Jetpack compose how to animate multiple values

I have couple of Path elements in my Canvas and would like to do some complex animations with every one of the Path lines. I am not sure how to approach this. L

Scaling Button Animation in Jetpack Compose

I want to build this awesome button animation pressed from the AirBnB App with Jetpack Compose Unfortunately, the Animation/Transition API was changed recently

How to change android jetpack compose bottomAppBar icon tint color?

BottomNavigationBar() can only take the background and contentColor but there is no option for tint color.

How to add existing fragment from inside Compose

I want to open an existing fragment from compose or if i can add inside the same compose in full screen, that will also work. Also how to navigate from one exis

Button Long Press Listener in Android jetpack compose

I am having an Android Composable UI with a Button. How can I track button long press events? I got it working for the Text long press, but for Button, It is no

Build Software Keyboard with Jetpack Compose - IME Input Method with Jetpack Compose

Building a simple keyboard is fairly simple and straightforward in Jetpack Compose. I built a really simple KeyRow by using this: Key.kt @Composable fun Key(mod

Sending an ID or an object as String to the next screen in Jetpack Compose?

I have 30 users displayed in a LazyColumn. On user click, I navigate forward to UserDetailsScreen. My question, is it better to pass the ID of the user and crea

How to load image in Kotlin Compose desktop?

How to load images from the hard disk when using Kotlin compose on the desktop?

What's difference between "= remember" and " by remember" (Kotlin, Jetpack Compose)

I think two use case of remember exist. first one is @Composable fun abc() { var aa = remember { mutableStateOf(true) } } and second @Composable fun abc()

Build Software Keyboard with Jetpack Compose - Add 3 additional buttons on top of keyboard

I need to create a custom software keyboard and add 3 buttons in the top: the underline, bold, italic buttons. When clicking on the TextField I need to be able