Open toSilence opened 8 years ago
Hi I have also same problem, is there any solution?
Hi, yes, i finally used following order:
<LinearLayout>
<android.support.design.widget.CoordinatorLayout>
<View behind FloatingActionButton>
<FloatingActionButton>
</android.support.design.widget.CoordinatorLayout>
<other stuff>
</LinearLayout>
You saved my life thanks!!! For those who want to align bottom their fab menu button, can use android:layout_gravity="end|bottom"
in coordinator layout.
@toSilence I'm facing the same problem and I can't get my head around your solution. I use a ListView
with FloatingActionMenu
on top, all inside a CoordinatorLayout
. So in your snippet, what exactly is <other stuff>
- can it be a ListView
? Then it will overlay the FAM, right? And why a LinearLayout
? Would appreciate if you could post the actual layout you're using to solve the problem. Thanks!
Hi,
The
I don't know where to set but I think the library uses visibility constant INVISIBLE
and that should be replaced with GONE
look here in FloatingActionMenu.java
public void hideMenu(final boolean animate) {
if (!isMenuHidden() && !mIsMenuButtonAnimationRunning) {
mIsMenuButtonAnimationRunning = true;
if (isOpened()) {
close(animate);
mUiHandler.postDelayed(new Runnable() {
@Override
public void run() {
if (animate) {
startAnimation(mMenuButtonHideAnimation);
}
setVisibility(INVISIBLE);
mIsMenuButtonAnimationRunning = false;
}
}, mAnimationDelayPerItem * mButtonsCount);
} else {
if (animate) {
startAnimation(mMenuButtonHideAnimation);
}
setVisibility(INVISIBLE);
mIsMenuButtonAnimationRunning = false;
}
}
}
It seems that changing to android:clickable="false"
worked.
I had the same problem and in my case it was happening because of the android:fillAfter="true"
property in my hide animation xml file. After removing it worked.
changing the width and height of the FloatingActionMenu to "match_parent" fixed it for me.
i'm still having this issue can any one help me. i'v tried all the above solutions and no one works.
@thairA2Ajaber I am also having the same issue, but im using a RecyclerView and it won't allow me to scroll or click any items inside the RecyclerView. If I move the RecyclerView below my FloatingActionMenu in the XML it hides the FloatingActionMenu and then makes the RecyclerView scrollable.
How do we fix this?
until the problem is solved use
android:clickable="false"
android:fillAfter="false"
like this
<com.github.clans.fab.FloatingActionMenu
.......
android:clickable="false"
android:fillAfter="false"
....
Hi,
the FloatingActionMenu hides the touch events for underlying Views even if the Menu is closed.
Is there any setting to bubble up the touch events?
Any help appreciated Thx