I have an activity with coordinator layout.inside activity there is a fragment with Recycler view and float button.how can I show/hide float button when Scroll Recycler view and avoid to use fab behavior?!
in activity layout: CoordinatorLayout----->AppBarLayout---->Toolbar and FrameLayout and Bottom bar view
in fragment layout: RelativeLayout---->Recycler view and float button
I want to implement something like Google+ home page. how can I implement this scenario?
Temporary I used this solution for my problem:
using coordinator layout of activity by interface in my fragment and show/hide fab with fab behavior ... until I find better solution!!!
I modified Leondro's method such that the FAB will hide when there's scrolling and show when the scrolling stops.
This code works just fine:
You cannot do:
Look here: