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

软件盘冲突 #24

Open
jackandroid2016 opened this issue Jun 11, 2018 · 1 comment
Open

软件盘冲突 #24

jackandroid2016 opened this issue Jun 11, 2018 · 1 comment

Comments

@jackandroid2016
Copy link

在有软件盘弹出的情况下,再弹出pop,位置改变

@zyyoona7
Copy link
Owner

经过我的测试,默认情况下 PopupWindow 弹出位置和软键盘有重合则会适应键盘,可以通过

setInputMethodMode(PopupWindow.INPUT_METHOD_NOT_NEEDED)

方法设置不适配软键盘(此方法如果弹出位置和软件盘重合则会遮挡软键盘),但是这个方法只对 showAtLocation 方法有效,如果你调用的是 showAtAnchorView 方法话则暂时没找到解决方案~后面有时间会增加基于 showAtLocation 的精准位置弹出方法

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

No branches or pull requests

2 participants