Open Studentessa opened 8 years ago
Same question here.
In your activity you must use
StickyRecyclerHeadersDecoration headersDecor = new StickyRecyclerHeadersDecoration(mAdapter);
mUltimateRecyclerView.addItemDecoration(headersDecor);
then generateHeaderId will be call.
Thanks @PabloDesiderioFlores I'll try! ;)
Hi:
Is it possible to have sticky header with
UltimateDifferentViewTypeAdapter
? Because when I extend my adapter fromUltimateDifferentViewTypeAdapter
and not fromUltimateViewAdapter
the methodgenerateHeaderId()
is never called even if I had set StickyRecyclerHeadersDecoration to my recyclerview.thanks