faizmalkani / Fabulous

[DEPRECATED]
MIT License
479 stars 117 forks source link

FAB disappears while scrolling #10

Open bffcorreia opened 10 years ago

bffcorreia commented 10 years ago

The Floating Action Button disappears when we scroll up and down fast. To reproduce this behaviour, simply add more items in the sample application and scroll down. Before the scroll stop, scroll up.

Tested with Nexus 5 using version 4.4.4.

MichaelEvans commented 10 years ago

+1, Also seeing this issue

mradzinski commented 10 years ago

+1. Easy to reproduce by following what @bffcorreia said

Vierco commented 10 years ago

+1 has anyone found a solution?

androideveloper commented 10 years ago

+1 i have tabs in my layout and have same problem

anshul1235 commented 10 years ago

same problem

ClarkXP commented 10 years ago

same problem

ghost commented 10 years ago

I've got a listview and I'm seeing the same error. Hoping for a fix soon.

broakenmedia commented 10 years ago

Same issue!

ClarkXP commented 10 years ago

I did a change on hide(), I declared initialY to save de initial Y value from View, works but I think that isn't the better solution:

public void hide(boolean hide) { if(initialY ==0){ initialY =getY(); } if (mHidden != hide) { float offset; if (mHidden) { offset = mCurrentY; } else { //mCurrentY = getY(); mCurrentY = initialY; offset = mScreenHeight; } mHidden = hide; ObjectAnimator animator = ObjectAnimator.ofFloat(this, "Y", offset); animator.setInterpolator(mInterpolator); animator.start(); } }

ghost commented 10 years ago

@ClarkXP do a pull request...see if Faiz will accept it or attend to the issue.

arusahni commented 10 years ago

This should have been fixed with #14, right?