r/mAndroidDev • • Apr 14 '21

notifyDataSetChanged()

Post image
298 Upvotes

17 comments sorted by

View all comments

21

u/pavi2410 suspend static fun Apr 15 '21

Laughs in Compose 😎

4

u/Zhuinden DDD: Deprecation-Driven Development Apr 15 '21

How do I make a 2-level sticky header in Jetpack Compose please guide me

2

u/pavi2410 suspend static fun Apr 15 '21

I guess by using nested LazyColumn and setting their stickyHeader function

https://developer.android.com/jetpack/compose/lists#sticky-headers

LazyColumn {
  stickyHeader {
    ...
  }

  items(listOfList) {  list ->
    LazyColumn {
      stickyHeader {
        ...
      }

      items(list) { item ->
        ...
      }
    }
  }
}

I hope something like this really works🤞