-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FloatingActionButton can't show/hide after call setFab() #54
Comments
The Bug is due to animations. mFab.hide() uses animation to hide the fab. But at the same time since bottomBar state changed it is trying to animate fab cancelling previous animation so hide animation is stopped. i will try to fix it in upcoming release. mFAB.hide() try to call mFAB.setVisibility |
Yeah I have the same case and met this bug, longing for fixing it! |
it work if you write it like this
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have 4 fragments and use BottomNavigation to switch between them.
In some fragments, I don't want to use fab, so I try to call
mFAB.hide()
to hide it.No matter I call this method in activity or fragment, it just doesn't work, the button still there.
But if I remove the line,
mBottomNavigationBar.setFab(mFAB)
,the button will show/hide as expected when switching between tabs.
The text was updated successfully, but these errors were encountered: