shamanland / floating-action-button

Implementation of a circular button made of paper that lifts and emits ink reactions on press.
http://shamanland.github.io/floating-action-button
Apache License 2.0
371 stars 88 forks source link

Set fade speed #23

Closed AlexBurdu closed 5 years ago

AlexBurdu commented 9 years ago

Any way to set the speed at which the button fades off the screen? I looked through the javadoc and couldn't find anything.

ok3141 commented 9 years ago

You can set custom animations with your own duration for show/hide actions:

listView.setOnTouchListener(new ShowHideOnScroll(fab, R.anim.custom_show, R.anim.custom_hide));

There is a section in readme: Show/hide when user scrolls down/up