mzgreen / HideOnScrollExample

This is an example on how to show/hide views when scrolling a list.
620 stars 173 forks source link

hiding actionbar creates a white space below tabbar #4

Closed arpitkh96 closed 9 years ago

arpitkh96 commented 9 years ago

here is the implementation https://github.com/arpitkh96/AmazeFileManager/commit/b56934fe56301d203638a8935e0fb5de768f5edd

Screenshots https://drive.google.com/file/d/0B7y8VGv6MgR5dU5zS1VibEJYMjg/view?usp=sharing https://drive.google.com/file/d/0B7y8VGv6MgR5TmhiSTVTdG9oSk0/view?usp=sharing

mzgreen commented 9 years ago

It seems to me that your padding above the list is bigger than the toolbar's height because you have this path bar below the toolbar. And this path bar's height is greater than toolbar's height. I think that you should modify HidingScrollListener class. There is mToolbarHeight variable, try to set it to your path bar's height instead of toolbar height.

arpitkh96 commented 9 years ago

That didn't worked. Problem is something different. Related to layout only.

arpitkh96 commented 9 years ago

One more strange thing. Headers and dividers of recycler view are visible in that white space but row items arent.

arpitkh96 commented 9 years ago

Solved... Padding was the problem

arpitkh96 commented 9 years ago

I added header instead of padding