UltimateRecyclerView icon indicating copy to clipboard operation
UltimateRecyclerView copied to clipboard

multiple view adapter with sticky header

Open Studentessa opened this issue 8 years ago • 3 comments

Hi:

Is it possible to have sticky header with UltimateDifferentViewTypeAdapter? Because when I extend my adapter from UltimateDifferentViewTypeAdapter and not from UltimateViewAdapter the method generateHeaderId() is never called even if I had set StickyRecyclerHeadersDecoration to my recyclerview.

thanks

Studentessa avatar Sep 02 '16 10:09 Studentessa

Same question here.

PabloDesiderioFlores avatar Mar 31 '17 20:03 PabloDesiderioFlores

In your activity you must use StickyRecyclerHeadersDecoration headersDecor = new StickyRecyclerHeadersDecoration(mAdapter);

mUltimateRecyclerView.addItemDecoration(headersDecor);

then generateHeaderId will be call.

PabloDesiderioFlores avatar Apr 03 '17 13:04 PabloDesiderioFlores

Thanks @PabloDesiderioFlores I'll try! ;)

Studentessa avatar Apr 04 '17 12:04 Studentessa