ebarrenechea / header-decor

A couple of sticky header decorations for android's recycler view.
Apache License 2.0
878 stars 159 forks source link

Can we make a view - Linear or Relative sticky? #37

Closed AnandKhinvasara closed 7 years ago

AnandKhinvasara commented 8 years ago

So What when I use the library it seems that we can only make the textViews stick because it doesnt accept any other views. Am I doing something wrong or is the library designed that way?

ebarrenechea commented 8 years ago

You have total control over what to use as a view in the sticky headers. You inflate your own layout in a class that implements the StickyHeaderAdapter interface. It works exactly the same as a RecyclerView.Adapter with a ViewHolder to hold the header's view references.

starkej2 commented 7 years ago

The library supports that functionality. Please provide more details if you are still having issues with your implementation @AnandKhinvasara.