Questions tagged [android-jetpack-compose-lazy-column]
78 questions
2
votes
0 answers
LazyColumn inside Viewplager2 scroll issue
There is a Viewpager 2 with 5 tabs and each tab contains a fragment.
In one of these fragments, I have a compose view and also used
LazyColmn inside this fragment.
What happens is sometimes when I want to scroll the lazy column horizontally, the…

Ehsan
- 2,676
- 6
- 29
- 56
2
votes
2 answers
Finding the middle visible item in LazyRow
I have a scrollable LazyRow that contains numbers, I want for the middle visible number to
be automatically selected as shown below:
How could I find the middle visible item in a LazyRow?
code:
@Composable
fun ScrollableAgeSelector(
modifier:…

Roony
- 132
- 15
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(
…

Kotlin Learner
- 3,995
- 6
- 47
- 127
2
votes
3 answers
How can I use LazyColumn in LazyColumn in jetpack compose?
I got this error message, And I don't get it.
java.lang.IllegalState
Exception: Vertically scrollable component was measured with an
infinity maximum height constraints, which is disallowed. One of the
common reasons is nesting layouts like…

c-an
- 3,543
- 5
- 35
- 82
2
votes
2 answers
How to implement swipe to refresh in Jetpack compose
How to create swipe to refresh in Jetpack compose using kotlin? Please Share proper reference link
SwipeRefresh is not available
SwipeRefresh(
state = rememberSwipeRefreshState(isRefreshing),
onRefresh = { },
) {
…
user19514642
1
vote
1 answer
how to implement the feature where the lazy column scrolls a single column at a time
I want to create the reels feature with the lazy columns in kotlin where user can scroll the single item at a time not the multiple one's.
I tried to use the
flingBehavior = rememberSnapFlingBehavior(
snapLayoutInfoProvider =…

Anas Mirza
- 13
- 3
1
vote
2 answers
Zooming each image inside LazyColumn causes content to overlap
I am trying to zoom images which are items inside my LazyColumn but when i try to zoom in it overlaps content with the other images and the scrolling of lazycolumn also becomes too difficult
var scale by remember { mutableStateOf(1f) }
var offset…

Chup bae
- 69
- 1
- 7
1
vote
1 answer
Application crash due to IndexOutOfBoundsException in Lazycolumn Jetpack compose
I am getting IndexOutOfBoundsException when I remove items in mutableStateListOf, where MyType is some custom Type. There are almost around 250 items in myList. The items are removed in a loop. Almost 6 elements are visible in viewport at one time.…

Mansoor
- 11
- 1
1
vote
2 answers
Issue with MotionLayout animation not working properly with LazyColumn in Jetpack Compose
I'm trying to implement a MotionLayout animation with swipe gesture using the androidx.constraintlayout.compose version 1.1.0-alpha09 library in Jetpack Compose. However, I'm facing an issue where the animation doesn't work as expected when using…

Fredrick Reuben
- 23
- 3
1
vote
1 answer
How to get firstvisibleItemIndex in detectTapGestures
I have a lazycolumn and use detectTapGestures to get the onclick event
I would like to get the current firstvisibleItemIndex of the lazycolumn when I click
on a Lazycolumn item
Tried different solutions with state.firstVisibleItemIndex but none is…

VFarkas2023
- 295
- 1
- 1
- 8
1
vote
0 answers
Compose LazyColumn stops updating after recomposition
I'm pretty much a beginner in Kotlin, Room, Flows and viewmodels.
The Flow data coming from the viewmodel seems to be working quite well as soon as I launch the app, updating the Jetpack Compose LazyColumn in my MainActivity with data coming from…

A.M.P.
- 65
- 4
1
vote
1 answer
paging3 state always stuck at the end of first page when navigating away
So, i was learning jetpack compose, and trying to make an anime index app which use paging3, pagingcompose,and lazy layout. But, even when i save the lazy state in rememberlazyliststate and rememberlazygridstate, the paging state is always stuck at…

lelestacia
- 201
- 2
- 9
1
vote
1 answer
Jetpack Compose - LazyColumn Doing Unnecessary work and breaking Jetpack Compose idea entirely?
I want to preface this by saying I'm not a Kotlin developer or Android developer, so my experience is extremely limited, but I wanted to delve into some Android + Kotlin development and this was one of my issues and question that I have been…

Simon Farre
- 71
- 1
- 6
1
vote
0 answers
Compose Android - Update a Item from list without page refresh
I have a LazyColumn list which holds user Items and I have populated the list Item view no issue on that, in here say I need to update a view from the Item like updating the user profile picture without updating the whole list but just making the…

arun
- 95
- 13
1
vote
1 answer
Change Alignment of particular child item in LazyColumn jetpack compose
I am using LazyColumn in my @Compsoable screen. Inside LazyColumn there are so many child and which align verticalArrangement = Arrangement.Top and horizontalAlignment = Alignment.CenterHorizontally. But in one child Item I want to use from Start.…

Kotlin Learner
- 3,995
- 6
- 47
- 127