Questions tagged [lazycolumn]

209 questions
0
votes
0 answers

Bottomsheet opening for a fraction of second on scrolling lazycolumn

Bottom sheet showing when lazycolumn scrolls even though both of them are in different composable functions. i tried passing bottomsheetstate and hidding it in liststate.isScrollInProgress. Bottom sheet showing for a fraction of second when…
0
votes
0 answers

Get Offset of clicked item in a LazyColumn in Jetpack Compose

I'm making an app in which you have a LazyColumn, and I want to add a "Context Menu" to the items after long pressing If I don't have a LazyColumn and I use the following code:…
MKiperszmid
  • 98
  • 1
  • 9
0
votes
1 answer

Jetpack Compose LazyListState Weird Bug

Passing a LazyListState as a variable into a Lazy Column is creating a weird bug I had never encountered. val listState = rememberLazyListState() LaunchedEffect(key1 = state.messages.size) { if (state.messages.isNotEmpty() &&…
0
votes
2 answers

How to remove Surface padding in jetpack compose

In LazyColumn when we use LazyListScope.items with Surface. Inside multiple items there is extra padding on TOP and BOTTOM. I want to remove this padding. I am using Surface component of Material 3. BOM version is compose_bom = "2022.11.00". Please…
0
votes
1 answer

Don't recompose ad in Android Compose LazyList

I have a LazyColumn with items and advertisements. When I scroll down and up (see video) the Advertisement Composable is recomposed (good that is how it should work in compose), meaning that a new advertisement is loaded. The grey block with the…
Harrienak
  • 67
  • 9
0
votes
0 answers

Lazy column goes off screen from bottom

I am using ComposeView in xml layout
0
votes
2 answers

When mutableStateOf is updated recomposition does not get occurred

I have basic composable as in the following: var timer by remember { mutableStateOf(0) } Column { Text(text = timer.toString()) Button(onClick = { timer++ }) { Text(text = "Add") } …
0
votes
2 answers

why can't I use scrollToEnd or similar functions in my Jetpack Compose project?

I 'm trying to go lazycolumn last item because I have a lazycolumn and empty list. The application I made is a chatbot application, there are bot messages and user messages. When the bot gives a message, it is added to the list, at the same time,…
0
votes
1 answer

Jetpack compose - Lazy Column crashes on Recompose

Hi I am using Jetpack Compose to create a Heterogenous list. I was successful in implementing it. My requirement is when I try to click an Item in the list, I need to recompose the list. The app crashes when tried to refresh the list with below…
0
votes
0 answers

How can I automatically scroll to LazyColumn item in Kotlin?

I am making a chat bot application and I show the dialogs in lazycolumn, but the page does not scroll down as the dialog progresses, which causes a bad experience for the user. I found something related to this called rememberLazyListState and…
0
votes
1 answer

Can we initialize a list from a specific index in lazy column?

I want to initialize a list from a specific index in lazy column. For example: I have a list of 10 items. I want the list to load from 5. index when first loaded. The method I'm using now is to scroll to the 5th index after loading the list. But…
Emre Memil
  • 233
  • 3
  • 5
0
votes
0 answers

Scroll position of LazyColumn or LazyRow in pixel?

I want to detect scroll position of my LazyRow. For example I scroll 2000px in a LazyRow and then navigate to another screen and come back. when I come back, LazyRow is scrolled 2000px and state is saved correctly. However I need that initial 2000px…
0
votes
1 answer

PagingData is empty briefly in Compose UI

I have a LazyColumn that collects a Flow>? from the ViewModel, but the itemCount property of the collected state reports an empty list with 0 items at first briefly before it reports the actual number of items in the…
0
votes
0 answers

How to handle state in compose if you have TextFields in LazyColumn?

I've a list of QA(String,String) where each list item represents 2 TextFields in Lazycolumn, I tried several things but my TextFields value is not updating. I tried mutableStateListOf() , mutableStateOf() , I'm passing the QA(String) value to the…
0
votes
1 answer

Empty list message still shown despite circular progress bar implementation with LazyColumn

I have a LazyColumn that displays a list of shopping list items retrieved from the database in the ViewModel. If the retrieved list of items is empty, the LazyColumn shows the following message: "You don't have any items in this shopping list." The…