//editText获取焦点
editText.setFocusable(true);editText.setFocusableInTouchMode(true);editText.requestFocus();//弹出软键盘InputMethodManager inputManager = (InputMethodManager)editText.getContext().getSystemService(Context.INPUT_METHOD_SERVICE); inputManager.showSoftInput(editText, 0);
Android EditText获取焦点并弹出软键盘
最新推荐文章于 2024-04-28 11:30:06 发布