UltimateRecyclerView
UltimateRecyclerView copied to clipboard
multiple view adapter with sticky header
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
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! ;)