Questions tagged [lazycolumn]

209 questions
1
vote
1 answer

state.animateScrollToItem() is not working in LazyColumn

`I am trying to animate LazyColumn items with state.animateScrollItems() function. But is not not working. It is working very well with state.scrollItmes() function. I am using compose_ui_verdion 1.2.1, compose_compiler_version 1.3.2 and kotlin…
1
vote
0 answers

HorizontalPager with lazy column in a lazy column

I'm trying to make a UI similar to the YouTube channel UI. I've got two lazy columns (I don't know if it's the correct way or not) in a column, in which the first lazy column consists of data regarding the second lazy column and a sticky header.…
1
vote
1 answer

Recomposition every time on lazy column jetpack compose

I need help with a full recomposition in every row of my lazy column when they are in or out of the screen. The performance is not good at all. Its a simple lazy list with pagination on a lazy row First the Pager on my viewmodel val result = Pager( …
1
vote
2 answers

LazyColumn, Jetpack Compose. Single items() state by index

I have a problem with the state of individual elements in LazyColumn and LazyRow. If the first element is open and I want to delete it, then the second element becomes the first and also becomes open. I want it to work differently. Screen enter…
1
vote
1 answer

Jetpack compose lazy column swapping a different list not updating

I am new to jetpack compose, I am showing a dataset to Lazycolumn that works fine. When I try to fliter i.e. replace the original dataset with different dataset, my Lazycolumn initially shows it the replaced one but in a flash it goes back to…
Vineet
  • 53
  • 5
1
vote
1 answer

How to show a multiple fields of documents in Firestore in one row of LazyColumn

I'm new to Firestore. I need to show two of the values of the fields, "category" and "title" 3, of documents in Firestore in one row of LazyColumn like this 1. I tried some codes as below but they are shown like this 2. Is it possible? My code of…
1
vote
0 answers

Android compose LazyVerticalGrid/Column weird behavior

I have this weird behavior when using compose lazy column or LazyVerticalGrid When scrolling to the top the lazy grid gets separated from the status bar How can i prevent that ? Giving the lazy grid a background can solve the issue but that's not…
Tarik Husin
  • 197
  • 2
  • 9
1
vote
1 answer

How to use Paging3 Library to start on the not-first page?

I'm trying to use PagingSource, LazyPagingItems and LazyColumn to display a dataset that extends into the past and the future. I want the initial load of my list to be centered on "today", and allow the user to scroll up to go back in time, down to…
blork
  • 2,150
  • 6
  • 26
  • 45
1
vote
1 answer

Nested Lists in Jetpack Compose using LazyColumn

I am trying to build a screen that contains nested lists as in the image below. The code that builds the preview above is: @Preview @Composable fun ChannelBountiesCardPreview() { Column { Text( text = "ACS Microfinance -…
Alex Kombo
  • 3,256
  • 8
  • 34
  • 67
1
vote
2 answers

Using Horizontal LazyRow with items in compose

I am trying to figure out what would be the best approach to create this type of design: https://gyazo.com/bae04894f7ef079a06ad71f733026f33 https://gyazo.com/111eace0d8cdecdecad1c8a7b486faf7 Should I be using a Horizontal lazyRow as suggested with a…
Josef M
  • 412
  • 2
  • 5
  • 20
1
vote
1 answer

How to remember that the scrollable content has been reached?

I am new in Compose, and I am struggling with the state issue. Let's consider such scenario: The list of items is displayed. On the bottom of the screen there is a button which state should change if user reaches the bottom of the list. When…
1
vote
1 answer

key { ... } composable vs LazyList's item key as composable key

I have a Todo list laid out using LazyColumn, and each item is another Composable (CardView) that handles each TodoModel. I'm using rememberSaveable to manage the state of this CardView's own composable (e.g TextField, clickable images etc), so as…
z.g.y
  • 5,512
  • 4
  • 10
  • 36
1
vote
0 answers

Jetpack compose : LazyColumn scroll incorrectly until the content items are scrolled / seen at least once

I am facing issue in jetpack compose LazyColumn scroll feature. I have 4 items in LazyColumn which are dynamically loaded from server and I do have a top bar which can be used to jump to those 4 sections straightaway. Scenario 1 (jumping on indexes…
1
vote
1 answer

jetpack compose : creating LazyColumn with items parameter

LazyColumn(modifier = Modifier.fillMaxWidth(), state = listState) { //ABC Category Items item { ABC(componentCoordinator = componentCoordinator) } //DEF Category Items item { DEF(coordinator = screenCoordinator) …
1
vote
1 answer

Compose LazyColumn laggy while scrolling

Jetpack Compose version: '1.1.0' and Jetpack Compose component used: androidx.compose.* (base components_ Android Studio Build: 2021.2.1 Kotlin version:1.6.10 I have simple code inside activity. When i start App and start scroll with speed, i see…
user2291961
  • 11
  • 1
  • 2