PopupWindow window=new PopupWindow(view, LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT); //必须让popupwindow获得焦点时才能弹出输入法 window.setFocusable(true);