All Questions
112
questions
4
votes
1
answer
76
views
Automatically scroll up the lazy column to display the full height of the card when expanded
This code does not work as expected. I want lazy column to automatically scroll up to display the entire height of the card when expanded.
val listState = rememberLazyListState()
val coroutineScope = ...
1
vote
1
answer
35
views
How do I add a top offset to sticky headers?
In Jetpack Compose, I have a LazyColumn with multiple stickyHeader items. By default, the stickyHeader items will stick to the top of the LazyColumn as you scroll down. Is there a way to alter this ...
0
votes
0
answers
15
views
Is it possible to implement nested sticky headers with Jetpack Compose?
I want to implement nested sticky headers with Jetpack Compose.
Jetpack Compose already supports Sticky Headers.
But I can't find way to implemented nested headers.
See requirement demo:
1
vote
0
answers
41
views
Android Jetpack Compose, Combining LazyColumn, StickyHeader & Tablayout list breadcrumbs
I have a complex list based UI that is based around scroll events. It's laid out in the following order
TextView
Tablayout --> Each tab is a textview of a LazyList section header
LazyList
...
0
votes
0
answers
28
views
Jetpack Compose StickyHeaders on the same line as an LazyColumn item
How can i can implement sticky headers like in Contacts?
I saw this implementation, but maybe there is a more concise solution?
My code below
LazyColumn(
modifier = Modifier.fillMaxSize()
) {
...
0
votes
0
answers
30
views
Vertical scroll modifier with child LazyVerticalGrid and LazyColumn Not Working
Putting column with vertical scroll with child lazy vertical Grid gives following error
java.lang.IllegalStateException: Nesting scrollable in the same direction layouts like LazyColumn and Column(...
0
votes
1
answer
272
views
Error with LazyColumn: "Asking for intrinsic measurements of SubcomposeLayout layouts is not supported"
I'm getting the following error:
java.lang.IllegalStateException: Asking for intrinsic measurements of SubcomposeLayout layouts is not supported. This includes components that are built on top of ...
0
votes
0
answers
47
views
Android Compose LazyColumn change some values
How do I reflect changes in some values in the List to LazyColumn in real time?
val postDataList = postViewModel.postDataList.collectAsLazyPagingItems()
LazyColumn(
modifier = Modifier
...
1
vote
0
answers
51
views
Why is LazyColumn's scroll super slow?
It's so slow, it's almost unusable. Release build doesn't make much difference unless the the outerLists size is around 2
Tried: My searches did not yeild anything i can undertand. I tried looking ...
1
vote
0
answers
110
views
Android Compose (TV) wrong focus when TTS is on
Using jetpack compose to create an APP for TV platforms and I've been trying to create a Vertical List of Horizontal Lists using a LazyColum/LazyRow having a enter Focus (first item Top Left), when ...
0
votes
0
answers
98
views
How can I properly handle nested scrolling in VerticalViewPager with a LazyColumn inside?
I'm trying to simulate a launcher app. It has a main main screen and an apps drawer. I've implemented this with a VerticalViewPager: page 0 is the main page and page 1 is the app drawer. That way, I ...
1
vote
1
answer
47
views
How to make a grouped LazyColumn items for API data JSON?
I want to make API data appear in groups inside a LazyColumn.
I've achieved my purpose when the required API data is a List of Lists of Objects response, but I don't have any idea how to make it work ...
0
votes
1
answer
28
views
View API games grouped by league id only got first league with itemIndexed
I'm trying to get matches by date from a football API and show them grouped by league.
So, I've made a mutable list in ViewModel to store every match item with the fixtureId as its unique identifier. ...
0
votes
0
answers
101
views
Loading Native Ads Inside LazyColumn
This is the composable holding Lazycolumn and after every 5th item native ad has been visible but due to lazycolumn recomposition when I'm scrolling ads got disappeared and after coming back ads again ...
0
votes
0
answers
193
views
Android compose nested lazy column scroll
I have the following UI in compose
Parent Lazy Column 1 {
// item 1
// item 2
// item 3 LazyColumn 2
}
Lazy Column 1 and LazyColumn 2 have device height.
use cases:
if the parent lazy column 1 ...