轉自 stackoverflow 默認 alertbuilder 的焦點沒法落到 edittextview。 用下面的方法,而後用dismislistener,去自動消失。 editText.setOnFocusChangeListener(new OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { editText.post(new Runnable() { @Override public void run() { InputMethodManager inputMethodManager= (InputMethodManager) YourActivity.this.getSystemService(Context.INPUT_METHOD_SERVICE); inputMethodManager.showSoftInput(editText, InputMethodManager.SHOW_IMPLICIT); } }); } }); editText.requestFocus(); 留意 manifest配置 android:windowSoftInputMode="adjustPan"