Category "android-jetpack-compose"

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

Animate objects in another column in LazyVerticalGrid

I have a LazyVerticalGrid with items that I animate with animateDpAsState and width upon click on the button. The items below do move downwards but there is a p

Disable ripple effect of BottomNavigationItem

I need a bottom navigation bar for my app. To display the items I use BottomNavigationItem: BottomNavigation( ... ) { ... BottomNavigationItem(

How to check if the device uses the right-to-left direction using Jetpack Compose?

On Android we can use android determine if device is in right to left language/layout. But does Jetpack Compose provide any API to check the layout direction? W

How to best show a popup menu on Jetpack Compose for Desktop?

So I have the concept of a popup menu... @Composable expect fun PopupMenu( menuItems: List<String>, onClickCallbacks: List<() -> Unit>,

Jetpack Compose Navigation - Bottom Nav Multiple Back Stack - View Model Scoping Issue

So I have two tabs, Tab A and Tab B. Each tab has its own back stack. I implemented the multiple back stack navigation using code in this google docs val na

Compose side effects + Jetpack navigation + onBackPressed = Stuck navigation

I am having this issue where I have to navigate when given state gets updated after an asynchronous task gets executed. I am doing it like this: At ViewModel.kt

What is the best Compose way to build preference screens without using a fragment?

I was unable to find any documentation on how to create preference screens in a pure Compose way without using a fragment. Can anyone please suggest the best wa

Jetpack compose dialogFragment equivalent

I'm trying to implement a dialogFragment with custom layout in Jetpack compose but can't find any samples. Do I need to wrap the UI components inside a Card/Sur

How to remove padding from Text button?

I am trying to remove padding from TextButton but it wont work. TextButton( onClick = {}, modifier = Modifier.padding(0.dp) ) { Text( " ${ge

Jetpack Compose Keyboard adjustment

Is there a way where we can control for every screen different states of the keyboard, for example I have one screen where I want to adjust size of the keyboard