//edittext获取焦点后会瞬间失去,暂时使用这种笨方法解决(获取到焦点后过300ms再获取一次) public void requesFocus() { mEditName.setOnFocusChangeListener(new OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { if (hasFocus) { AndroidUtil.runOnUIThread(new Runnable() { @Override public void run() { mEditName.requestFocus(); } }, 300); } } }); mEditPhone.setOnFocusChangeListener(new OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { if (hasFocus) { AndroidUtil.runOnUIThread(new Runnable() { @Override public void run() { mEditPhone.requestFocus(); } }, 300); } } }); }