288 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-1
votes
1
answer
104
views
Jetpack Compose LazyColumn scroll offset breaks when content size changes dynamically [duplicate]
I'm building a chat screen using Jetpack Compose with a LazyColumn. During loading, I show a shimmering placeholder with a large height. Once the real data arrives, the content shrinks because the ...
1
vote
1
answer
156
views
LazyColumn resizing issue
We have a LazyColumn which has a loading state and then shows the received data. In the second stage, the final view can be smaller than the shimmering views depicting the loading stage. So, if while ...
0
votes
0
answers
77
views
Android TV : LazyColumn and focus [closed]
I started a new app dedicated to Android TV platform.
I try to display an Activity containing 2 or 3 columns using LazyColumn components. Each column are displayed correctly with the data in my lists....
3
votes
1
answer
154
views
How to scroll to the last entry in a LazyColumn so it is displayed at the top and not at the bottom?
I'm building a chat interface in Jetpack Compose using a LazyColumn.
When a user sends a new message I want their latest message to appear at the top, and older messages should scroll up automatically....
0
votes
1
answer
82
views
How do I forget or reset lazyListState in Jetpack Compose?
I have issue that I cannot resolve - forgetting list state. I have single LazyColumn which has some items and I also have list of categories users can choose from eg. All, Favourite, Subscribed etc.
...
0
votes
1
answer
74
views
Sticky header stuck in top Jetpack Compose
I wanted to make header sticky header for relevant header. Which is expandable.
data class Section(
val header: String,
val items: List<String>
)
val sections = listOf(
Section(&...
3
votes
1
answer
137
views
LazyColumn only updates data from Room after scrolling
After navigating to the screen, the data is retrieved through ViewModel and Room, but LazyColumn won't update, only after scrolling.
I'm using a data class to create a list of sections called ...
2
votes
1
answer
89
views
State being lost when LazyColumn items move between item blocks
It seems like LazyColumn is losing state on rows when moved between different item calls even though they're keyed. It was my understanding that if two items existed with the same key the composable ...
1
vote
1
answer
156
views
LazyColumn + TextField (not in bottomBar) with imePadding: extra padding when soft keyboard is opened
I am struggling around with this extra padding and provided here a small sample code.
What is causing the extra padding added between the text field and the software keyboard (when opened)?
Expected ...
1
vote
1
answer
102
views
How to change the size of multiple Composable elements at once without triggering recomposition without using animate*AsState?
I'm using Jetpack Compose and have a LazyColumn that displays a list of Card items. When the user performs a onLongClick on one of the cards, a selection mode is triggered:
A selection icon appears on ...
1
vote
2
answers
91
views
Android how can I fill the remaining space above a specific item in a Jetpack Compose LazyColumn? [duplicate]
I have a LazyColumn in Jetpack Compose and I want one of the items (let’s call it a "highlighted block") to always sit at the bottom of the visible viewport, even when the list is short. In a regular ...
0
votes
0
answers
37
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
2
answers
160
views
Can't nest a LazyColumn inside a HorizontalPager
I need to nest a lazycolumn inside a horizontalpager, and I need the lazycolumn to have a verticalScroll(scrollState) to remember the current scroll between screen/orientation changes.
I created this ...
1
vote
1
answer
80
views
How to avoid lazy column index duplication after item swap
I want to make some item swap mechanism in LazyColumn items. For this I have used itemIndexed but after a swipe, index numbers becomes the same. For example if I swap first item with second the item ...
0
votes
0
answers
129
views
Video in LazyColumn
I am working on an android application but I am not very familiar with jetpack compose.
I want to display videos as items in a lazy column but some videos don't load and just display a black view or ...