epoxy icon indicating copy to clipboard operation
epoxy copied to clipboard

Make StickyHeaderLinearLayoutManager work with any RecyclerView.Adapter that implements StickyHeaderCallbacks

Open optisamit opened this issue 5 years ago • 5 comments

Right now if I want to have sticky headers, I'm forced to use BaseEpoxyAdapter. But that does not need to be the case, since StickyHeaderLinearLayoutManager only needs an adapter implementing StickyHeaderCallbacks. Implementing this change would make the layout manager more flexible.

optisamit avatar Aug 14 '20 17:08 optisamit

Are you saying you want to use the sticky headers outside of Epoxy?

elihart avatar Sep 02 '20 23:09 elihart

Yes. Why not?

On Thu, Sep 3, 2020, 02:35 Eli Hart [email protected] wrote:

Are you saying you want to use the sticky headers outside of Epoxy?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/airbnb/epoxy/issues/1037#issuecomment-686101953, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACMZRU6FWAPBDCCP2TCQLCLSD3JCXANCNFSM4P7V5UQA .

optisamit avatar Sep 03 '20 04:09 optisamit

Because this is the Epoxy library, why not use Epoxy if you are here?

If you are not using Epoxy it seems preferrable to use a standalone sticky header library (like https://github.com/qiujayen/sticky-layoutmanager) which would probably offer better support and features)

elihart avatar Sep 03 '20 22:09 elihart

The library you've referenced has been abandoned for 3 years. I couldn't find anything better than Epoxy, but I wouldn't like to rewrite my adapters and view holders at this point

On Fri, Sep 4, 2020, 01:23 Eli Hart [email protected] wrote:

Because this is the Epoxy library, why not use Epoxy if you are here?

If you are not using Epoxy it seems preferrable to use a standalone sticky header library (like https://github.com/qiujayen/sticky-layoutmanager) which would probably offer better support and features)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/airbnb/epoxy/issues/1037#issuecomment-686794463, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACMZRU5EBHBB4IMSXTJG5HLSEAJN7ANCNFSM4P7V5UQA .

optisamit avatar Sep 04 '20 04:09 optisamit

Any plan to implement 'StickyHeaderGridLayoutManager' to support more than a span laid out? Let's say one span for the sticky item and then I can specify more than one span for the rest of the items?

Gelacio avatar Jan 27 '23 08:01 Gelacio