Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EnterAlwaysCollapsed does not bring back the Toolbar when scrolling down

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?

like image 533
josephus Avatar asked Sep 28 '22 04:09

josephus


1 Answers

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"
like image 197
tachyonflux Avatar answered Oct 13 '22 03:10

tachyonflux