Scalified / fab

Floating Action Button Library for Android
Apache License 2.0
849 stars 164 forks source link

Make fab appear when scrolling #17

Closed norrisboat closed 9 years ago

norrisboat commented 9 years ago

I want the fab to appear only when scrolling

vbaidak commented 9 years ago

Hi laylizzle,

In order to make it appear just call show() method on ActionButton object.

Any ScrollListeneres won't be implemented in ActionButton library because of 2 things:

  1. This is actually not the part of the Floating Action Button library
  2. There are many of scroll containers (not only stock android) so searching and implementing all of them is not a trivial task and indeed it is simpler to call show() and hide() instead of making all this stuff
norrisboat commented 9 years ago

Thanks