https://kotlinlang.org logo
#compose
Title
# compose
s

Spikey Sanju

10/20/2021, 3:51 AM
Hi Team 👋, How can I add a
stickyHeader
to
LazyVerticalGrid
? Is there any workaround solution for this?
c

Colton Idle

10/20/2021, 6:13 AM
What have you tried? I'm assuming you've seen this video already?

https://youtu.be/BhqPpUYJYeQ?t=121

d

Danish Ansari

10/20/2021, 6:48 AM
@Colton Idle video shows
sticykHeader
for
LazyColumn
not
LazyVerticalGrid
And I don't think that
LazyGridScope
has
stickyHeader
method
f

Felix Schütz

10/20/2021, 7:06 AM
Just use
LazyColumn
with
Row
for the grid items and
stickyHeader
for the sticky header
👌 2
d

Danish Ansari

10/20/2021, 7:16 AM
@Spikey Sanju check this out https://gist.github.com/nglauber/64df9091c2e76bde648ce48d585ed3e1 it implements the same logic as @Felix Schütz mentioned
s

Spikey Sanju

10/20/2021, 4:24 PM
@Colton Idle
LazyVerticalGrid
is not having sticky header method. Here’s the below image which I’m trying to show
sticykHeader
👇 @Danish Ansari Thanks for the above reference. I will check them out 🙌
👍 1
5 Views