Questions tagged [lazycolumn]
209 questions
1
vote
1 answer
How to continuously animate text size based on lazy column / lazy llist scroll in Android - Jetpack Compose?
I want to make a smooth transition for scaling text inside the lazy column. Currently, I am using the graphics layer to animate the text scale based on the first visible item index from the list state. But it does not provide smooth and continuous…

Rudra Dave
- 101
- 4
- 11
1
vote
1 answer
Nested State for checkbox in jetpack compose
I have face problem related to states in jetpack compose. Problem is that I have list that contains questions. Some question need radio button for single selection and some question need checkbox for multiple selection. see below image..
Screen shot…

Haris Iqbal
- 23
- 1
- 4
1
vote
1 answer
LazyColumn inside LazyColumn
I am trying to create and list with sub list using LazyColumn with the code below
DropdownMenu(
expanded = expandedDomain,
onDismissRequest = { expandedDomain = false },
) {
LazyColumn {
items(1) {
Checkbox(checked =…

Rahul Matte
- 1,151
- 2
- 23
- 54
1
vote
2 answers
LazyColum only recompose when scroll
I'm new on jetpack compose and I'm sure that I'm missing something but I don't know what?
my State model:
data class ChoiceSkillsState(
val isLoading: Boolean = false,
val errorWD: ErrorWD? = null,
val skills: List =…

MakiX
- 326
- 3
- 8
1
vote
1 answer
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 implement search function using compose from room table?
//Getting the list from room and…

SevenWinds
- 65
- 1
- 3
- 11
1
vote
0 answers
Setting LazyColumn Item Height to Maximum Available in Jetpack Compose
I want to create a list of three boxes arranged in a LazyColumn. The height of the boxes should take up all the available space within the parent.
So if the parent has the height of 90dp and the bottom padding of the boxes is 5dp then the height of…

Loma Harshana
- 493
- 1
- 3
- 6
1
vote
2 answers
Can Lazy Column live inside another Lazy Column?
I'm starting using Jetpack compose and i'm facing some issues with Lazy Column.
The problem is that i want to make a list that contains another list inside every root item (such as a card that containt another list inside).
Unfortunately, when i run…

Sguit
- 35
- 1
- 8
1
vote
0 answers
Expand/collapse animation issue in LazyColumn Jetpack compose Android
I am trying to show a section within LazyColumn which has a list of Rows that are shown horizontally using LazyRow. I would like to have a button which displays show/hide so that I can show a minimal list in this section instead of full list. I…

Dijar
- 31
- 1
- 6
1
vote
1 answer
Jetpack Compose - LazyColumn children not redrawn on recompose
I have a very strange problem with my LazyColumn. I am updating the menuList State in the ViewModel, the view recomposes but the list doesn't get redrawn.
When I use the debugger, it gets to LazyColumn and then stops, which means the children aren’t…

MSpeed
- 8,153
- 7
- 49
- 61
1
vote
2 answers
LazyColumn items stay in same position after some items removed
I have LazyColumn with swipe-to-delete. When I swipe an item, it is deleted by viewModel. The problem is that if I swipe the item away, the LazyColumn doesn't update the position of other items (as shown in GIF).
Here's my code…

Paul Sizon
- 247
- 4
- 12
1
vote
1 answer
Jetpack Compose How to get music files and their metadatas lazily for LazyColumn
I am trying to write a music player app by using Jetpack Compose. I have a MusicCardModel like below
data class MusicCardModel(
val contentUri: Uri?,
val songId: Long?,
val cover: Bitmap?,
val songTitle: String?,
val artist:…

Ahmet Saraç
- 11
- 4
1
vote
2 answers
Android Compose lazycolumn does not update when livedata is changed
I have a list of items where each has a checkbox. The state of the checkbox needs to be stored in the viewmodel and preferable the list in the viewmodel should be the only source of truth.
@Composable
fun Screen(viewModel: ViewModel) {
val list…

OscarCreator
- 374
- 4
- 13
1
vote
3 answers
LazyColumn items mutual exclusive
Say I have a list of items in a LazyColumn and they can all be selected. How can I make sure when an item is selected, the others are deselected (so only 1 item can be selected at once)?
I was thinking about interactionSource but I'm not really sure…

Andrei Teslovan
- 85
- 1
- 5
1
vote
0 answers
Columns in LazyColumn stacked/collapsed into one
Columns in the LazyColumn get stacked into one.
Here is the code
package xxx.xxx.xxx
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import…

Leon
- 811
- 10
- 21
1
vote
2 answers
Zoom Lazycolumn item
I am trying to zoom to an item in a Lazycolumn. I have tried various ways but they all have a problem and I don't know how to fix it. On the first try, I tried to scale and detect the gesture from the image but lose the ability to scroll the list…

Komito
- 93
- 1
- 7