141 questions
0
votes
1
answer
89
views
Unsplash images fetched using Paging3 are not showing in LazyColumn
I'm trying to follow an online course to fetch images from Unsplash to view these images inside a LazyColumn, and I also followed all guidelines inside Unsplash Documentation. But the images or other ...
0
votes
0
answers
372
views
Unable to re-prod and fix LazyListMeasureKt.measureLazyList-XXXXXX crash
Firebase shows many crash reports of Fatal Exception: java.lang.IllegalArgumentException from LazyListMeasureKt.measureLazyList-xxxxxx.
Stack Trace does not show any line from my code either which ...
0
votes
1
answer
191
views
Kotlin Compose: Data not display async in a lazy column
i have a issue with a lazy column and a database. When i load my activity with a lazy column, the database is call to get list of tournaments. But the list is not display in the lazy column. The list ...
5
votes
2
answers
3k
views
Enabling Text Selection in Compose LazyColumn by selection container
I previously used a WebView to display a long text and style each word based on some business logic. However, I recently transformed this HTML content into a list of sentences and utilized a ...
1
vote
0
answers
110
views
First checked item in Jetpack Compose LazyColumn list is not checked, only checked after list is scrolled
So, I have this is my code for LazyColumn list
val selectedTongNumber = remember { mutableStateListOf<String>() }
LaunchedEffect(dataTongNumber.size) {
selectedTongNumber.addAll(...
1
vote
1
answer
183
views
Couldn't get the entire list in Lazy Column Jetpack Compose
I am trying to collect the data and show up in lazy column but only one data is viewed each time how to get collect all but when creating a log in viewModel the entire data is showing but when viewing ...
0
votes
1
answer
1k
views
Jetpack Compose. How to center text in LazyColumn
I'm trying to implement simple list. When list is empty I need to show empty placeholder in the center of the screen. Here is my code:
LazyColumn(
modifier = Modifier
....
5
votes
2
answers
5k
views
How to detect if user is scrolling up/down LazyColumn - Jetpack Compose
How can I detect when they user is scrolling up or down in a LazyColumn? I'm trying to hide an element on the screen when the user scrolls down and show it again when the user begins to scroll upwards....
1
vote
1
answer
484
views
Jetpack compose LazyColumn key recompose problem?
My app(jetpack compose) can reorder list's items by drag and drop.
if user reorder(drag) Trip1 to up, showingTripList will be like this : [0, 1, 2, 3] -> [1, 0, 2, 3]
and then, user reorder Trip2 ...
1
vote
0
answers
251
views
I am creating a module like Google Calendar's day view in my app
Creating a module like Google Calendar's day view in my app. In this app, I can select a time from a time slot. One slot = 30 minutes. Then, the user can drag that slot up and down and the selected ...
2
votes
2
answers
1k
views
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 = ...
3
votes
1
answer
2k
views
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 ...
1
vote
0
answers
986
views
ExoPlayer issue using AndroidView in LazyColumn Compose
I am trying to have a videoplayer (using ExoPlayer occupying half of the screen's height) at the top of the LazyColumn and list of items below the video player using compose. The list of items ...
19
votes
3
answers
4k
views
Application crash due to IndexOutOfBoundsException in Lazycolumn Jetpack compose
I am getting IndexOutOfBoundsException when I remove items in mutableStateListOf<MyType>, where MyType is some custom Type. There are almost around 250 items in myList. The items are removed in ...
0
votes
2
answers
2k
views
Updating item in a mutableStateList is not triggering recomposition in UI (LazyColumn)
I have been scratching my head over this problem.
I have a data class representing items that can be selected(or unselected).
data class FilterItem(
val name: String,
val isSelected: ...
1
vote
0
answers
480
views
Jetpack Compose LazyColumn not scrolling when inside XML ScrollView
I am attempting to implement a functional LazyColumn within a ScrollView in XML. Unfortunately, the nestedScroll functionality of the LazyColumn is not working as expected. I have provided a ...
0
votes
1
answer
2k
views
Jetpack compose: Nested scroll with LazyColumn issue
I have a requirement to display a LazyVerticalGrid,LazyRow and a Label in a single screen.
I tried to place LazyVerticalGrid ,LazyRow and Label in LazyColumn.
The app crashes with infinite height ...
0
votes
1
answer
3k
views
Android Jetpack Compose - Best way to handle scrolling of entire screen
My screen has a horizontal gallery at the top (LazyRow) and beneath it has a grid of 8 buttons that can be scrolled (LazyGrid).
Due to the layout the grid when scrolled doesn't affect the gallery ...
1
vote
0
answers
1k
views
LazyColumn slow in samsung device in jetpack compose
I am using LazyColumn in my project and it is very slow on scrolling the items. I created a very small project to show what is the problem in my code. It scroll smoothy on Pixel, OnePlus devices, but ...
0
votes
1
answer
487
views
Why LazyColumn always seems not showing part of the custom layout view from left and right side?
I have code below which I experiment with LazyColumn and Column on CustomLayoutModifier on Text (or can be on anything).
@Composable
fun Greeting() {
Column(
horizontalAlignment = ...
0
votes
1
answer
2k
views
Correct way to remove item from the LazyColumn in jetpack compose
I want to remove item from the LazyColumn. I have a bunch of item in the list i.e. 200+ item. When I removed item it little bit slow. I don't understand what is the problem in my code. I am adding ...
1
vote
1
answer
75
views
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 ...
2
votes
2
answers
1k
views
Can a Compose LazyList be scrolled to adjust for keyboard?
I have been wrestling with IME padding/adjustment for my app. I have written a little toy app to try and focus on just the problem. The app presents a scrollable list of cards with info on them, the ...
1
vote
1
answer
912
views
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 ...
3
votes
0
answers
398
views
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 ...