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

setFocusAndOutsideEnable 为false 之后,导致整个屏幕不能滑动 #45

Closed
china-coder opened this issue Nov 20, 2018 · 7 comments

Comments

@china-coder
Copy link

setFocusAndOutsideEnable 为false 之后,导致整个屏幕不能滑动,用popwindow去做,就可以滑动,请问这个要怎么配置呢?setOutsideTouchable 为true也不行

@zyyoona7
Copy link
Owner

setFocusAndOutsideEnable(false) 以后 PopupWindow 获取了焦点并且拦截了 PopupWindow 之外的触摸事件,你的效果是什么样的?

@china-coder
Copy link
Author

我要的是 popwindow 不可点击取消,popwindow 之外的内容可以滑动

@zyyoona7
Copy link
Owner

用原生的方法设置 PopupWindow 不获取焦点试一下~

@china-coder
Copy link
Author

你好 具体用这个库怎么实现呢?有没有具体的例子呢?

@china-coder
Copy link
Author

这样? mCirclePop.getPopupWindow().setFocusable(false);

@zyyoona7
Copy link
Owner

这个库没有适配这种情况,需要自己去手动设置 PopupWindow ,内部有获取 PopupWindow 方法,具体可以看一下 Demo 和阅读以下源码。

@china-coder
Copy link
Author

好了,已经解决了,我上面写的那个方法是可以的

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

2 participants