Questions tagged [lazycolumn]

209 questions
2
votes
2 answers

Unable to mutate the list loaded by Paging 3 in jetpack compose

I have an activity that has a list of items loaded through the Paging 3 library. The list screen is designed by using jetpack compose and the list of items is shown in a Lazy column. Clicking on any list item would take me to a detailed screen and…
2
votes
1 answer

LazyColumn inside Column with verticalScroll modifier throws exception

In one of my composables, a Lazycolumn is nested inside a Column composable. I want to be able to scroll the entire Column along with the Lazycolumn. But, specifying the verticalScroll modifier property on Column results in the following exception…
2
votes
2 answers

Android: how to show only some elements in a lazyList?

I want to create a timepicker in jetpack Compose like this: To show the values ​​I am using a lazyList, but I cannot find an elegant method to show only 3 elements at a time better than: LazyColumn (modifier = Modifier.height(x.dp))
2
votes
1 answer

How to select only one item in a list (LazyColumn)?

I have a list of address and I want that my user select only one address for the shipping
user18082994
2
votes
0 answers

Jetpack Compose Vertical Scrolling is interrupted by Horizontal Scrolling

I have create a Column having 5 Rows, Column has vertical scrolling enabled and Rows has horizontal scrolling enabled. Sometimes when I try to fling or scroll vertically, Rows consume the gesture and stops vertical scroll to happen. is there a way…
2
votes
2 answers

Maintain LazyColumn scroll position after re-composition

I'm building a composable screen, say PostScreen where multiple posts are shown in GridView and when user click on any of them, I'll navigate to DetailScreen where posts are shown in larger box with multiple buttons associated (like, comment). My…
Annon
  • 633
  • 7
  • 26
2
votes
2 answers

Compose Dialog closing on keyboard appearance when LazyColumn is in background

I have a layout where each item in a LazyColumn can display an item-specific dialog. The Dialogs showed and worked fine except for some of the larger ones where whenever I would try to edit text in one of the dialog's TextFields it would trigger the…
2
votes
2 answers

How to update lazyColumn's item using the Flow list from room?

As below code showed, I got the list(type: Flow>), how can I use it to update lazyColumn's item, so when the room data changed, lazyColumn updates items accordingly? Many thanks. @Composable fun SomeContent(context: Context) { // get the…
caibirdcnb
  • 275
  • 5
  • 18
2
votes
2 answers

compose LazyColumn crops the content at the bottom

I have empty fragment with composable: setContent { Surface( modifier = Modifier .fillMaxWidth().fillMaxHeight().padding(bottom = 48.dp, top = 16.dp), color = colorResource(id = R.color.usaa_white) ) { val…
Rainmaker
  • 10,294
  • 9
  • 54
  • 89
2
votes
2 answers

LazyColumn to not recompose some items

With RecyclerView, I can make some ViewHolder not recyclable (follow some answers in I want my RecyclerView to not recycle some items). Can I make LazyColumn to not recompose some items (similar to make RecyclerView don't recycle some ViewHolder)? I…
Linh
  • 57,942
  • 23
  • 262
  • 279
2
votes
0 answers

Scrolling LazyColumn items makes ScaffoldBottomSheet collapses

I am going to implement a screen with jetpack compose containing a ScaffoldBottomSheet and a LazyColumn inside the bottom sheet's content. I also want the bottom sheet's height to be fixed and users can't collapse it. In order to do that I disable…
mehdi dorreh
  • 173
  • 1
  • 12
2
votes
2 answers

How to disable scrolling in LazyColumn and Column

I want to disable scrolling in my LazyColumn or Column. Modifier.scrollable(state = rememberScrollState(), enabled = false, orientation = Orientation.Vertical) or Modifier.verticalScroll(...) doesnt work. Here is my Code: Column( modifier =…
2
votes
0 answers

horizontal list inside vertical list not smoothly on jetpack compose

I'm trying to implement a screen that use a vertical scroll to show all the contents and some sections of this screen has a horizontal scroll with cards like this: The screen composable: LazyColumn{ item { header } item { texts } item…
FelipeRsN
  • 887
  • 1
  • 9
  • 19
2
votes
1 answer

Equivalent to adapter.notifydatasetchange or Diffutils in Jetpack Compose Lazy Column/Row

How to update, delete or add item in a LazyColumn in Jetpack Compose ? Which is easily achieve by adapter.notifydatasetchange or diffutils in recyclerview
2
votes
0 answers

LazyColum Headers and Sub-headers

I am trying to create a LazyColumn with a sticky header and a sticky sub-header. The functionality I would like to achieve what is demonstrated in this GIF. My source code is as follows: The data item which will be used class Item( val type: String,…
LiTTle
  • 1,811
  • 1
  • 20
  • 37