Skip to content
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

有没有遇到FAB下滑隐藏后还是可以点击的? #9

Open
baoxiehao opened this issue Jan 29, 2017 · 7 comments
Open

有没有遇到FAB下滑隐藏后还是可以点击的? #9

baoxiehao opened this issue Jan 29, 2017 · 7 comments

Comments

@baoxiehao
Copy link

RT,不是应该不响应点击事件的吗?

@taany6210
Copy link

对的,他这个隐藏了照样可以点击的。还有bug。

@baoxiehao
Copy link
Author

额, 我现在是通过覆写 Fab 的 onTouchListener 临时修复了下.

@taany6210
Copy link

不止fab哦,我使用BottomNavigationView也会的。

@baoxiehao
Copy link
Author

我用了非官方的BottomNavView, 好像是没有这个问题的.

@vjHuang
Copy link

vjHuang commented May 24, 2018

非官方的FAB(com.github.clans.fab.FloatingActionButton),如果是bye_burger_bottom_behavior隐藏后就不会响应点击事件,如果是bye_burger_float_behavior隐藏后就会响应点击事件。。。

@jhwsx
Copy link

jhwsx commented Feb 26, 2020

我也遇到了,覆盖了 fab 的 onTouchListener 是怎么弄的?

@yangdengxueshi
Copy link

其实有最简单的解决方法,进入这个框架看源码,作者其实用的是 属性动画 来实现的,所以可以判断 FAB 的 getScaleY() 的值 是 0 还是 1,来得到 FAB 的显示 和 隐藏 状态

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants