Questions tagged [android-jetpack-compose-lazy-column]

78 questions
0
votes
0 answers

Update stickyHeader in LazyColumn while scrolling

I am trying to update the stikcyHeader composable while the list is scrolling based on some criteria about number of items being displayed in given section (i.e under one header). I can't figure out a way to do that. Here's what the code looks…
0
votes
0 answers

How to show Animation for a item of LazyColumn in Compose?

For example,I use a LazyColumn for displaying chatroom contents below: A-I like red tea!
B-Yes,it's very nice! someone joined the room As you can see,"someone joined the room" is part of this LazyColumn,but it will always show at the bottom,new…
0
votes
1 answer

LazyList performance issues after Compose 1.4.0 update

I decided to update my project to stable Compose 1.4.0 because of some new fixes, but quickly found out that all of my LazyLists with clickable cards have become very laggy while scrolling. I make my cards clickable by just adding an onClick…
0
votes
1 answer

Add longclick to a card in lazycolumn in kotlin

I have a lazycolumn with a card in Jetpack Compose - I added a clickable modifier to it and it works Card(colors = CardDefaults.cardColors( containerColor = Color(0xFF7DCEA0), Color.Black ), elevation =…
0
votes
0 answers

Bottomsheet opening for a fraction of second on scrolling lazycolumn

Bottom sheet showing when lazycolumn scrolls even though both of them are in different composable functions. i tried passing bottomsheetstate and hidding it in liststate.isScrollInProgress. Bottom sheet showing for a fraction of second when…
0
votes
1 answer

How to use SwipeRefresh with Jetpack Compose LazyColumn and reverseLayout

I am trying to create a chat feature in app. We would like the layout to be reversed in the column for easier scrolling. However, we cannot get the SwipeRefresh to work in this configuration if the list is large enough to scroll. Preferably, we…
0
votes
1 answer

Jetpack compose how to skip one item in a LazyVerticalGrid / java.lang.IllegalStateException: Check failed

i'am starting to work with jetpack compose. i'am creating a grid to display some Box with some text. the problem is that i get my data from my api and some might be null. So i would like to skip this item in my grid but it doesn't work. Here is my…
0
votes
0 answers

Lazycolumn with lazyrow that are loaded with api call

i'am new to jetpack compose and i would like to achieve a view but i'am really struggling with it. it a catalogue movie where you can chose film in different categories, so you get the all the categories listed in column and for each category you…
0
votes
1 answer

Composable state is lost after scroll and rotation

I have a LazyColumn containing ToggleButtonGroups that I have created myself. My issue can be reproduced by these three steps: Select "YES" on every ToggleButtonGroup Rotate the screen and then scroll to the bottom Rotate the screen back.…
0
votes
1 answer

How to get LazyRow's visible items in viewmodel

I have created a LazyRow in jetpack compose. At a certain point in the viewmodel, I want to get the list of currently visible items from that LazyRow. I know that I can get the list of visible items in the Composable function using the following…
0
votes
1 answer

auto scroll screen to last element jetpack compose

I am making a chat bot application. I've searched in many places to solve this problem but couldn't find anything clear. I have an empty list. Bot messages and user messages are added to this list, but it is empty at first. I show this list with the…
0
votes
2 answers

why can't I use scrollToEnd or similar functions in my Jetpack Compose project?

I 'm trying to go lazycolumn last item because I have a lazycolumn and empty list. The application I made is a chatbot application, there are bot messages and user messages. When the bot gives a message, it is added to the list, at the same time,…
0
votes
0 answers

How To Properly Pass Model Class In Navigation Of Jetpack Compose

I have a pretty basic application in Jetpack Compose, where: First screen has a lazyColumn with many items Users can click on an item and be moved to a screen with details about the clicked item Each item is modeled using a data class that is…
0
votes
0 answers

How can I disable compose reloading in Kotlin?

I am trying to make a chat bot app and I have a lazycolumn and lazycolumn's item. The bot and the user are talking and the dialogs are displayed with lazycolumn on the screen. Here is a message and there is a textfield under the message that the…
0
votes
0 answers

How can I automatically scroll to LazyColumn item in Kotlin?

I am making a chat bot application and I show the dialogs in lazycolumn, but the page does not scroll down as the dialog progresses, which causes a bad experience for the user. I found something related to this called rememberLazyListState and…