Category "android-jetpack-compose"

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

jetpack compose: scroll to bottom listener (end of list)

I am wondering if it is possible to get observer inside a @Compose function when the bottom of the list is reached (similar to recyclerView.canScrollVertically(

How to impl LazyVerticalGrid with set full span or dynamic num of GridCells.Fixed in jetpack compose?

Just like Sliver in Flutter or StaggeredGridLayoutManager in android reyclerview so I can insert a banner or some thing else into grid layout

Show custom alert dialog in Jetpack Compose

I am searching how create custom dialog in Jetpack Compose. In XML or Material Design we can create easily custom Dialog in which we can take user input, radio

Jetpack Compose - How to search and display specific data from room in LazyColumn?

I want to fetch data from room table using a search query and present the result in LazyColumn instead of the someList I present there. In other words, how to i