I'm using layout_scrollFlags="scroll|enterAlwaysCollapsed"
with a toolbar minHeight
of 0dip
, with the intention of only bringing back the Toolbar
when my first visible item in the RecyclerView
is visible (as opposed to enterAlways
, which brings it back immediately whenever the RecyclerView
is scrolled up). However, the toolbar is never showing again after I scroll it off the screen. What am I missing?
Please take a look at the design support library sample app: cheesesquare
The proper way to implement your described behavior is to just use the scroll flag by itself:
layout_scrollFlags="scroll"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With