Questions tagged [lazycolumn]

209 questions
0
votes
0 answers

How display the most recent item in LazyColumn? - Jetpack Compose

I have a product list and a shopping cart. I add the products to the cart. As the first item in the list of products added to the cart I want to view the last product I added. How can I view the list of products added according to this order?
0
votes
2 answers

Composables in Pager With Tabs Composed Too Quickly

Trying to implement accompanist pager with tabs to achieve something like instagram's page displaying followers, following and subscription - 3 tab menu with pager basically. This is the code I am using. fun UsersPager( myDBViewModel:…
0
votes
1 answer

How to use LazyVerticalGrid with paginated api?

Here's the network request I have: fun getItems(pageNumber: Int): Single> Here's my lazy grid: @Composable fun ItemGridView( productTiles: List, ) { LazyVerticalGrid( columns = GridCells.Fixed(2), …
0
votes
1 answer

Kotlin - How to change the background of Box with every LazyRow item

I am trying to make a new app with Jetpack Compose and in this app will be a LazyRow with different items in a Box. With every item that is fully visible the background of the box should be changed from the color saved in the data model. This is the…
0
votes
2 answers

How to show our Room Database Content in a LazyColumn in Jetpack Compose?

Until now it's almost 10 days that I'm searching and watching YouTube videos for my answer, but I can't find it. please help me if you can. Here Starts my MainActivity code: class MainActivity : ComponentActivity() { lateinit var appDB:…
0
votes
0 answers

Android: List of items(String, CustomDataClasses) scrolls down when radio button is clicked

I have a list of Strings that I populated that within a RecyclerView inside a ViewPager2. Scrolling down to extreme bottom of the list as in image 1 and clicking on radioButton, the list scrolls down by itself.I want to sustain the position of the…
0
votes
1 answer

List items are not refreshing when room data change

I have a lazy-column with a pager to show items using paging-compose 1 alpha 16 (latest). I have some issues around. 1-> Every time an item is off the screen and back again it comes with a leak on the view like it was loading the entire data. 2->…
0
votes
1 answer

How to set a fixed header while using LazyColumn?

I'm trying to have a little icon at the top of a LazyColumn that scrolls like any other item in the list. My googling has yielded no luck and I'm wondering if it's even possible yet. Looking for a resource that could help me implement this. To be…
brandNoob
  • 47
  • 6
0
votes
1 answer

Have LazyColumn and textfield pinned to bottom of screen. when textfield is focused, items in lazy column push it below keyboard

I have a lazy column that contains a number of Text(string = "...") and a textfield pinned to the bottom of the screen below the LazyColumn. when the textfield is focused, the keyboard shows up and it pushes the textfield above the keyboard which is…
0
votes
1 answer

In Jetpack Compose, Is there a way to make swipeable rows work better inside a scrollable LazyColumn?

I have LazyColumn that has verticalScroll modifier, and each child row also has a horizontal swipeable modifier. Everything actually works pretty well, but there is a bit of a problem when trying to scroll vertically -- if there's even a very slight…
user496854
  • 6,461
  • 10
  • 47
  • 84
0
votes
1 answer

Kotlin jetpack compose, Divider before my first item with LazyColumn and Surface

i'am new to jetpack compose and i really liked it. But ran into a problem : I want to create a card and inside of it, i would like to display a list of item with divider between them. I was almost able to achieved it : And here is my code…
XCarb
  • 735
  • 10
  • 31
0
votes
1 answer

Migrate jetpack compose from 1.0.5 to 1.1.1 : Card issue

I'm facing a weird issue with the latest stable version of Jetpack compose. When I was using version 1.0.5 everything was fine with LazyColumn I'm migrating an app from Jetpack compose version 1.0.5 to 1.1.1 but when I run the app, it shows some…
Viks
  • 1,510
  • 4
  • 22
  • 50
0
votes
1 answer

Why is LazyColumn not recomposing?

Link to the video of the problem: Video Link` Sometimes many notes delete at once and the add functionality is not working. When I swipe the Lazy Column does not recompose and put everything in order again. This is my…
0
votes
0 answers

List From Firebase Database not displayed in LazyColumn in Compose

The list shows usernames on the console when I use the code below Log.d("read data", "Yay!${bal.displayName}") But when I add the list to the LazyColumn, it doesn't display anything, except the single items I add atop and below the list to check if…
0
votes
2 answers

Jetpack Compose LazyColumn - How to update values of each Item seperately?

I'm working on a shopping cart feature for my app. I'm looking to add/decrease quantity of each list item in LazyColumn individually. I'm using only one "remember" so if I click on add/decrease they all update at the same time. How do I control each…
SevenWinds
  • 65
  • 1
  • 3
  • 11
1 2 3
13
14