window.setFocusable(true); window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); 複製代碼
window.setFocusable(true); window.setInputMethodMode(PopupWindow.INPUT_METHOD_NOT_NEEDED); 複製代碼