2
一个PopupWindow有在PopupWindow方法:无法显示上述软键盘
public void showAtLocation(View parent, int gravity, int x, int y)
在大多数设备的,我可以在屏幕的底部放置一个PopupWindow,连键盘是开放的,就像这样:
showAtLocation(rootView, Gravity.Bottom, 0, 0)
但也有一些装置的异常,如Z1的Xperia这样comapct ,ASUS Zenfone 5. PopupWindow的可用空间受到限制。 (键盘外)
有没有人面临同样的问题? 还是有什么建议?
可能是你有一个显示弹出之前关闭键盘。 – Fedor
但在键盘上方显示弹出窗口是我的主要目的。 –
尝试使用'android:windowSoftInputMode =“adjustPan”' –