Skip to content

Instantly share code, notes, and snippets.

@mzgreen
Created June 23, 2015 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mzgreen/2002e3dd979e22f47cf1 to your computer and use it in GitHub Desktop.
Save mzgreen/2002e3dd979e22f47cf1 to your computer and use it in GitHub Desktop.
HideOnScrollExample - adding behavior to the fab
<android.support.design.widget.FloatingActionButton
android:id="@+id/fabButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end|bottom"
android:layout_margin="@dimen/fab_margin"
android:src="@drawable/ic_favorite_outline_white_24dp"
app:borderWidth="0dp"
app:layout_behavior="pl.michalz.hideonscrollexample.ScrollingFABBehavior" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment