hideOnDownwardsScroll

fun FloatingActionButton.hideOnDownwardsScroll(recycler: RecyclerView)

Attaches a listener to the recyclerview to hide the fab when it is scrolling downwards The fab will reappear when scrolling has stopped or if the user scrolls up