Questions tagged [android-jetpack-compose-lazy-column]

78 questions
0
votes
0 answers

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 simplified project on GitHub, specifically designed to…
0
votes
1 answer

How to fix LazyColumn Composable scrolling problem

I'm trying to embed a horizontally scrollable table within a Composable. However whenever I engage horizontalScrolling the container goes 'blank', as shown. Also figured out that the container or LazyColumn itself has to have a .size to constrain…
0
votes
1 answer

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 issue for LazyVerticalGrid. So, I set the height to…
0
votes
1 answer

Compose sorted list: items disappear and reappear

I'm displaying a list of items that I want to display in "distance" order. However, sometimes when an item's distance is updated causing it to move to a different place in the list, several items disappear from the bottom of the list. Another update…
0
votes
1 answer

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 which makes sense. What I'd like to do however is for…
0
votes
0 answers

Overscroll effect is producing a blank space when using a transparent statusbar in jetpack compose

Iam using a Lazycolumn with an Image as first element. When I scroll up, while Iam already at the top the overscroll starts and leave a thin blank line between the image and the top of the device. This only appears in lightmode with a transparent…
0
votes
0 answers

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 it's laggy on Samsung device. So what are the…
0
votes
0 answers

Jetpack Compose measure lazy column items and change height to list

I need to create a vertical picker, pretty similar like the one from iOS I managed to do the snapping, the retrieving of the central item, but the only thing I'm failing to is how to make the list have dynamic height so everytime I'm using it to…
0
votes
1 answer

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 = Alignment.CenterHorizontally, ) { …
0
votes
1 answer

Refreshing LazyPagingItems without visibly refreshing LazyColumn in Jetpack Compose

I'm using Jetpack Compose and LazyPagingItems to display paged data in a LazyColumn using the Paging 3 library. I have implemented the refresh functionality when the user comes back to the Tab by calling refresh() on the PagingSource. However, when…
0
votes
1 answer

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 basic sample what I did try on my…
0
votes
1 answer

LazyColumn with constraints between component in different items

I have a LazyColumn with items as Row containing LinearProgressIndicator and Text. Sample Screenshot Given conditions, All text is aligned to the end. I am using LazyColumn as there are many items and the list will be scrollable. Requirement How…
0
votes
0 answers

Why did I use AnimatedVisibility as a deletion animation in LazyColumn without any effect

@OptIn(ExperimentalMaterialApi::class) @Composable fun SwipeRefreshLazyColumn( data: List?, dataStatus: DataStatus, isNavVisible: MutableState = mutableStateOf(true), onRefresh: () -> Unit, onLoadMore: () ->…
0
votes
0 answers

When using Surface elevation, the elevation shadow effect below me will not be displayed

val pagerState = rememberPagerState() Column { Surface(elevation = 2.dp) { Column() { SearchView() FixedTabLayout(data = tabs, pagerState = pagerState) } } …
0
votes
1 answer

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 name is a simple BasicTextField. The code is at…