square / cycler

Apache License 2.0
791 stars 27 forks source link

Documentation about sticky headers and swipe #41

Closed christophehenry closed 2 months ago

christophehenry commented 3 years ago

Hi!

The documentation states Cycler should have common features including sticky headers but I don't see it anywhere in the documentation. Am I missing something?

luis-cortes commented 3 years ago

I don't think it's been implemented yet.

I would have expected to see classes like StickyHeaderExtension and StickyHeaderExtensionSpec along with an extension function like this:

fun <I : Any> Recycler.Config<I>.stickyHeaders(block: StickyHeaderExtensionSpec<I>.() -> Unit) {
  extension(StickyHeaderExtensionSpec<I>().apply(block))
}

@helios175 Could you provide some guidance on which RecyclerView APIs need to be wrapped in Extension<T> in order to implement this feature?