Nikola Despotoski
Aug 9, 2017 · 1 min read

Hey Patric,

Thanks for finding the snippet useful. Depends what you are trying to achieve. `VerticalScrollingBehavior` is a bit generic class that only eases tracking of up or down scrolling. You can extend it to your more specific behavior and add simple translation (e.g: translationY from 0 to -height and reverse) animation for your Toolbar. FAB already has `FloatingActionButton.Behavior` that hides and shows the FAB on nested scrolling.

Hope this tip is helpful.

    Nikola Despotoski

    Written by

    Knitting code. One line at a time.