140 questions
0
votes
0
answers
22
views
touch-transparent LazyColumn
I want to make a LazyColumn that will overlay the main ui and ignore user's touches so user will interact with main ui. how can I do that? I've tried to make LazyColumn unclickable but it didn't help
...
0
votes
1
answer
44
views
Nesting a LazyColumn inside a scrollable Column - Jetpack Compose
I'm trying to nest a LazyColumn inside a scrollable Column in Jetpack Compose. I want the LazyColumn to vary in height with its contents until it reaches a maximum height of half the screen (in other ...
1
vote
0
answers
32
views
Jetpack Compose LazyColumn – Stack Scrolling effect
I’m trying to implement a stack scrolling effect in Jetpack Compose using a LazyColumn. The idea is that the topmost item remains anchored while the items below scroll up and stack on top of it.
...
1
vote
1
answer
78
views
Why is my LazyColumn item's clickable modifier not working in Jetpack Compose?
I'm working on a Jetpack Compose app where I have a LazyColumn displaying a list of items. Each item is wrapped in a Surface with a clickable modifier, but clicking the items doesn't seem to work. I'...
0
votes
1
answer
75
views
LazyRow non-observable firstVisibleItemIndex?
I'm tring to find max() on a subset of initial data before laying out an item of a LazyRow. The subset will consist of only visible items and I need to read firstVisibleItemIndex without triggering ...
0
votes
0
answers
65
views
StickyHeader with pagination in Jetpack Compose
I tried adding a stickyHeader as suggested in this answer. However, the performance is not close to the production-ready code because of the loop as my list is a bit bigger.
Here is my attempt:
...
3
votes
1
answer
120
views
ModalBottomSheet in LazyColumn contains wrong data
I have a list with a few records. Every record has a city, country, date and id (its primary key). In dao, then repository I have function which accepts id. Finally display list it's fine, but problem ...
2
votes
1
answer
391
views
How to compose items that are offscreen with LazyColumn or LazyRow?
This is a share your knowledge, Q&A-style question to create a follow up answer to create a Lazy list(Column, Row, Grid) that can compose more items than default behavior allows which is the next ...
0
votes
1
answer
436
views
Sticky header doesn't stay at bottom of screen when LazyColum list of items is small
I am implementing a chat app using a LazyColumn. I've created this with reverseLayout = true because I want the LazyColumn to automatically scroll to the last message when the view and keyboard first ...
0
votes
1
answer
192
views
Why does LazyColumn with inner .animateItem() not animate the LazyColumn height properly on item changes when not full height?
I want the LazyColumn height to be exactly the same as the items while still animating them via .animateItem(). With the code below, it looks nice but it uses .fillMaxHeight() which doesn't fit my use-...
0
votes
0
answers
59
views
How to fix that LazyColumn always swallows mouse clicks, even when no items are visible?
I have this code and I want to always display an area which displays notifications in a corner of the window. Here, I have the issue that LazyColumn always swallows any clicks, regardless if any items ...
1
vote
0
answers
121
views
Jetpack Compose BottomSheetScaffold with LazyColumn rendering too many items and occupying extra space
I am developing an Android app using Jetpack Compose. In my app, I am using the Morfly Advanced Bottom Sheet for convenience, which is very similar to the Material3 BottomSheetScaffold as it is built ...
1
vote
0
answers
104
views
Go to a specific item in LazyColumn with index using Paging3 on initial load
I am building a social media app that has a profile page. On it, the user can browse their posts from a vertical grid list. Each post has an id(UUID), authorId(UUID) and an image. When the user clicks ...
1
vote
1
answer
87
views
Making Tabs with scrollable content scroll alongside parent composable - IllegalException: Infinity maximum height
I have a composable screen which has some content, then a TabRow, which holds different screens (depending on the selected tab). The tab screens contain scrollable data and this is shown using a ...
1
vote
1
answer
215
views
How to switch focus from ModalNavigationDrawer to LazyColumn on Android TV using Jetpack Compose?
I am using Jetpack Compose for Android TV. For navigation drawer I use ModalNavigationDrawer. One of items in drawer is Home.
Here are two scenarios:
When I press Home in navigation drawer, it opens ...