Category "android-jetpack-compose"

Dynamic Icon content in Android Compose

What I need is to adjust Icon's content accordingly to the available screen space. If the screen height is enough - I would like to display a bigger image versi

How to check if user is logged in and redirect them to the right screen using Jetpack Navigation

what is the best way to save user logged in state, check if they logged in or not and redirect them to the right screen. I'm not using firebase Auth in this cur

How to update Jetpack compose UI by override method or outside the function

I am converting my older XML UI as per requirement. in there, I am unable to update by Jetpack compose UI by my override function. In some research I see many w

How to draw curved line chart using Canvas Jetpack Compose

Does anyone know how to drawLine with curved every corner using canvas in Jetpack Compose? I have achieved this using Canvas.drawPoints(): but I want to make e

Which one should I choose between collecting Flow from ViewModel or collecting Flow in Compose directly

The code A collect Flow in ViewModel, and convert a Flow as hot Flow using MutableStateFlow, then use collectAsState() in Compose. The code B collect Flow in Co

What does "pending composition has not been applied" exception mean and how can it be avoided?

I have a working application, but sometimes, for reasons unknown to me, the application crashes with this message: java.lang.IllegalStateException: pending com

When delete key pressed: java.lang.IllegalArgumentException: end cannot negative. [end: -1]

I was building an app using the Jetpack Compose library, I had an OutlinedTextField composable and I accidently pressed the delete key on the keyboard. the curs

How to test onDismissRequest attribute of AlertDialog?

In its simplest form I have this dialog: @Composable fun MyDialog( showDialogState: MutableState<Boolean> ) { if (showDialogState.value) {

Image cropper in Jetpack Compose?

I have searched everywhere but didn't got a single documentation about cropping images in Jetpack ComposeHow to crop Image in Jetpack Compose?

Android compose ModalBottomSheetLayout jumps on content size change

I basically have the same problem as this post, except I'm using Jetpack Compose, instead of the old View model. It happens with any kind of content - I tested

what's difference between ModalBottomSheetLayout and BottomSheetScaffold in compose?

Simple question, what's difference between ModalBottomSheetLayout and BottomSheetScaffold in compose? if they both do the same things so what's the difference ?

Can you use old nav graphs with jetpack compose

I am migrating a fragment from old Jetpack to Jetpack Compose. This fragment is part of an existing nav graph. After migrating the fragment (using ComposeView)

Handling multiple experimental annotations throughout an app

I have an app that makes heavy use of experimental features for Jetpack Compose so I have to declare a bunch of annotations on the composables. Since these anno

drawing a speech bubble using canvas in jetcompose

i want to draw a speech bubble using canvas in jetcompose but i dont know how to draw an arrow at bottom end of the Rectangle this is my code: @Composable fun D

LazyColumn with ConstraintLayout in android jetpack compose

I'm going to put a label on the top for each column and a LazyСolumn on the bottom. As follows. However, when I filled it out, the screen other than I ex

Jetpack Compose: What is the best way to support all screen sizes?

I searched on Google multiple ways to support multiple screen sizes on Android with Jetpack compose and I finally found the Google documentation: https://develo

Android Compose LazyColumn IllegalArgumentException: Key was already used

I keep getting IllegalArgumentException: Key was already used. If you are using LazyColumn/Row please make sure you provide a unique key for each item. I am sur

How to create in-app keyboard in android using jetpack compose?

In View system, we can using InputConnection to create in-app keyboard. But in Jetpack compose, i don't know how to do that. Can you help me, please?

Why I am not able to use mobile authentication with firebase in jetpack compose?

I am try to learning android jetpack compose, I have simple app, and I want to use mobile authentication with firebase for my project. I am using MVVM in the pr

ComposeView with dynamic height flickering inside ConstraintLayout

I have a ComposeView inside a ConstraintLayout like that: <androidx.compose.ui.platform.ComposeView android:id="@+id/compose" android:lay