Questions tagged [lazycolumn]

209 questions
3
votes
0 answers

Jetpack compose lazyColumn synchronized scroll

I want to create a table view with freezed header and side bar in jetpack compose. I use the code below: val vState = rememberLazyListState() var hState = rememberLazyListState() ConstraintLayout(modifier = modifier.fillMaxSize()) { …
3
votes
2 answers

Enable Auto-scrolling LazyColumn to the bottom when reverseLayout = false

I have a LazyColumn holding some Items. I listen a Flow from Room and everything works great when reverseLayout = true. When new Item get inserted into the database, the LazyColumn scrolls to the bottom and shows last Item just fine. But…
Stefano Mtangoo
  • 6,017
  • 6
  • 47
  • 93
3
votes
1 answer

How to Recompose Simple LazyColumn List Example

I'm new to Jetpack Compose and I'm trying to figure out how to recompose a LazyColumn list when user clicks a FloatingActionButton. As the picture shows, I have a basic Scaffold layout with a LazyColumn for content. Toward the bottom is a…
SqueezeOJ
  • 441
  • 7
  • 17
3
votes
1 answer

Perform different actions based upon items inside LazyColumn in android compose, different onClick events

I am creating a profile page for the app and need to perform different actions based upon items clicked inside LazyColumn. What I want is when I click on Rate us, play store to open, click on feedback browser should open, clicking on settings user…
3
votes
2 answers

Jetpack Compose Slider in LazyColumn changing while scroll

I have a list that includes Slider the problem is when I scroll the slider detecting the tap event and change it, see attached gif The excepted behavior is when the user scroll the slider not will change just when the user tap on the slider. How…
3
votes
2 answers

LazyColumn inside Alertdialog shows error in Jetpack Compose

I'am trying to show a LazyColumn inside an alert dialog so the user can choose between a list of items, and click on it. The alert dialog will show without problem, i can click on any item which is on screen and close it, but as soon as i try to…
3
votes
0 answers

LazyColumn with nested LazyRows - memory issue

In my app there's a LazyColumn that contains nested LazyRows. I have a memory issue - when there are 30-40 rows and about 10-20 elements per row in the grid, it's possible to reach Out-of-Memory (OOM) by simply scrolling the list vertically up and…
3
votes
2 answers

LazyColumn items staying in memory after they are removed from the list

I found out that my app uses an unusually large amount of memory. There's a LazyColumn where data is updated regularly. I found out that after these updates the amount of list item instances in memory increases with time and grows to become…
3
votes
1 answer

How to set default scroll position for LazyColumn without any feedback or animation in Jetpack Compose

I want my LazyColumn to show items in the list from the middle so I can scroll up or down. I used rememberLazyListState but it has some delay and I don't want the scrolling action to happen in the UI.
Mehranjp73
  • 341
  • 6
  • 20
3
votes
2 answers

Jetpack Compose: passing data from lazy column into another composable

I hope you all are doing very well. I'm very new to Kotlin so please be patient with me. I created a single page in jetpack compose, as you can see in the image below, it needs decorations but at least I want to implement the functionality. Simple…
2
votes
0 answers

Jetpack Compose: Nested LazyColumn with Animation

I have a layout that represents a tree of answers which may have other sub-answers. I was inspired by this question and use a nested LazyColumn like this: @Composable fun Questionnaire(answers: List) { LazyColumn { …
2
votes
0 answers

LazyColumn StickyFooter or keep focus on bottom items

I want to create a little messenger where messages are added from the bottom (new messages are placed at the bottom of the list). To achieve that I set the LazyColumns reversedLayout property to true. But if I do so, the sticky header also is…
Axbor Axrorov
  • 2,720
  • 2
  • 17
  • 35
2
votes
0 answers

LazyColumn recomposes the element multiple times on scroll. Performance issue

In the Log i can see if i just touch the list it will recompose it multiple times. It works fine and print "!!!" once every time new row appears if i run composable function separatly from app, but inside composeView it goes crazy and print it a lot…
2
votes
1 answer

How to stick item at bottom in LazyColumn jetpack compose

I want to put items at bottom of LazyColumn. So what is the best recommended way of doing in LazyColumn. Some content I put in item or itemIndexed which is correctly, but unable to know how to stick in bottom of screen? LazyColumn( …
2
votes
0 answers

Jetpack Compose LazyColumn Performance Issue

I'm writing example-screen with using lazyColumn. I encountered some performance issues on release build. Frame skipping happens when I fast-scroll the list. All models and composables are stable. My code is below; Screen record link ->…