【发布时间】:2012-11-27 11:41:20
【问题描述】:
我有一个 PopupWindow 锚定在 Button(顶部)上。 PopupWindow 包含一个 ScrollView。 PopupWindow 处于 SOFT_INPUT_ADJUST_RESIZE 模式并使用偏移量定位
代码:
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
window.showAtLocation(parent, Gravity.NO_GRAVITY, xPos, yPos);
屏幕:
base screen http://imageshack.us/a/img38/7771/basescreen.png
当软键盘出现时,我有这个(顶部按钮被隐藏):
what i have screen http://imageshack.us/a/img21/6396/whatihavescreen.png
我想拥有:
PopupWindow 锚定在 Button 上并调整大小。
what i have screen http://imageshack.us/a/img805/3302/whatiwantscreen.png
提前致谢!
【问题讨论】:
-
有什么可能的解决方案
标签: android popupwindow