popupwindow 键盘遮挡部分ui解决方案

在popupwindow里面拿到activity

activity.getWindow().setSoftInputMode(PopupWindow.INPUT_METHOD_NEEDED);
activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);

2行代码搞定

猜你喜欢

转载自blog.csdn.net/xiexiaotian11/article/details/83659213
今日推荐