Closed vovan888 closed 9 years ago
I use RecyclerView ItemDecoration to draw headers on top of items by overriding onDrawOver()
method. So I can't do anything to draw header under scrollbar.
A possible workaround may be to add more padding...
I sort of fixed this by changing onDrawOver to onDraw in StickyHeadersItemDecoration.java. Can you please suggest how to disable "sticky" feature of the headers?
Indeed, by using onDraw()
instead of onDrawOver()
, headers overlay scrollbar, but items overlay sticky headers ;).
But it make sense with "sticky" feature disabled. See this commit on disabling sticky feature : 2f3bc26f1bb02019a5be08178ec2118813cb14a0
Thanks a lot for the new options :)
.setSticky(false)
.setDrawOrder(DrawOrder.UnderItems)
When scrolling RecycleView it is clearly visible that headers overlay scrollbar, looks like scrollbar is under the header.
My header layout: