Hello, Is it possible to have 2 sticky headers in ...
# compose
n
Hello, Is it possible to have 2 sticky headers in a row in
LazyList
?
k
How does that look like in your design mock?
y
Yeah .. I’m interested in that too. What do the 2 headings look like that should behave like stickz headers
I think the filter (sorter) not needs to be sticky. The sorter just resort the list (ETF, Stocks) and it’s out of the lazycolumn scope
n
How, should I wrap the LazyList in a Column then?
y
of course
Or a Card or Box .. what is better for you .. aka
Copy code
Card(
        modifier = Modifier
            .fillMaxWidth(),
        shape = RoundedCornerShape(0.dp),
        colors = CardDefaults.cardColors(
            containerColor =  MaterialTheme.colorScheme.background,

        )
    ) {
        Text(
            text = "Sorter",
            modifier = Modifier.padding(8.dp)
        )
    }
    LazyColumn(
        modifier = Modifier
            .background(MaterialTheme.colorScheme.background)
            .wrapContentHeight()
            .fillMaxWidth(),
        verticalArrangement = Arrangement.spacedBy(0.dp),
        reverseLayout = false
    ) {}
n
Ohh got it thanks a lot, will try it out!