Questions tagged [lazycolumn]
209 questions
0
votes
0 answers
Mutable State Checkbox Not Changing Appearance After Selection - Jetpack Compose
There is a similar question here. I tried these solutions along with some others and still not having any success.
I have a checklist for different options in a dialog in Jetpack Compose. When an optionItem is selected I can see that the state has…

petestmart
- 500
- 11
- 27
0
votes
1 answer
LazyColumn that respects MotionEvent.ACTION_SCROLL
How to force compose' LazyColumn to act like traditional scrollable elements like RecyclerView or ListView?
Useful when want to scroll with mouse, e.g. with vysor.

ThinkDeep
- 519
- 1
- 4
- 19
0
votes
1 answer
How to update lazyColumn item's color based on data class properties?
At first, itemBackgroundColor is correct, some items are blue and some are gray.
But when the list is updated and some item.judge changed, itemBackgroundColor won't update accordingly.
How can I update itemBackgroundColor when the list is updated?…

caibirdcnb
- 275
- 5
- 18
0
votes
3 answers
Lazy Vertical Grid workaround in compose
I'm trying to implement Grid Layout with 2 columns using Compose, but LazyVertical Grid does not work for me. I searched for some workarounds to fulfill the task, but nothing was rendered on a screen. Any ideas?
val state = rememberLazyListState()
…

Dato.Beriashvili
- 29
- 1
- 8
0
votes
1 answer
How do I know a `LazyColumn` can be navigated?
How do I know a LazyColumn can be navigated?
For example, a list contains 100 elements, then it is a lazy column that can be scroll and we show a fab button to scroll up, but when this list contains 5 elements, the lazy column is not scrollable and…

Ghasem
- 467
- 5
- 8
0
votes
1 answer
Jetpack Compose: How to show Alert Dialog with a single item's information from LazyColumn clicked item?
I'm working on a simple project where I import a database of inventory items with room and can modify inventory according to changes. I'm struggling with the LazyColumn.
What I need: When an item from LazyColumn is clicked, show alert dialog with…

SevenWinds
- 65
- 1
- 3
- 11
0
votes
0 answers
LazyColumn resets to last position while scrolling to top
I have a weird situation with my LazyColumn. I have loaded some data from an API and want to show it in LazyColumn. And everything is fine until I scroll to the bottom of the list and try to scroll back to the top. When I try to scroll back to the…

beslimir
- 1
0
votes
1 answer
Complex layout in Jetpack Compose with nested scrolling composables
The idea is to create a layout similar to this pseudo-code in jetpack compose :
(contains some text view)
…
0
votes
1 answer
Why won't the recomposition trigger for my LazyColumn
I have a LazyColumn which has multiple lists which it's supposed to display depending on the index value. However, when I change the index the list changes, but the items do not get redrawn until I scroll down and back up.
I've tossed around the…

Marc
- 49
- 8
0
votes
1 answer
Set a single AnimatedVisibility to true in a LazyColumn
I have a Composable function for operating system infos which expands it details upon click and reverts when clicked again.
@ExperimentalAnimationApi
@Composable
fun OSCard(os: OS) {
var expanded by remember {
mutableStateOf(false)
…

Kinyo356
- 135
- 13
0
votes
1 answer
Animated LazyColumn and LazyRow
Animating items in LazyColumn and LazyRow in Compose is not yet supported:
https://developer.android.com/jetpack/compose/lists#item-animations
Follow issue tracker:
https://issuetracker.google.com/issues/150812265
However I created a small POC on a…

Roudi
- 1,249
- 2
- 12
- 26
0
votes
1 answer
Android Jetpack Compose capable of creating List with interactive Buttons and Values on each item?
I'm currently thinking about creating an initiative tracker app for a friend of mine and since I've been out of touch with app development for quite a while I'm trying to evaluate which tools would best suit my needs.
Since the App is going to be…

Thormgrim
- 145
- 1
- 1
- 12
0
votes
1 answer
Animate LazyColumn item compose
Is there any way to this day to animate the visbility of an item from LazyColumn/LazyRow?
I can't seem to find an option for this, I tried to do a extra parameter of boolean type for my data class object and then use it there…

Barrufet
- 495
- 1
- 11
- 33
0
votes
0 answers
LazyColumn composition clarification
I was playing around with the LazyColumn composable to implement a collapsing toolbar behavior with a sticky header. I then realized that the Lazycolumn is constantly rendering the items and never stopping doing so. As an example the code…

Paul-E
- 1
- 1
- 1