我找到了解决方案:
txtPassword.postDelayed(new Runnable() { @Override public void run() { InputMethodManager keyboard = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); keyboard.showSoftInput(txtPassword, 0); } },200);谢谢 !!!



