editText.setFocusable(true); editText.setFocusableInTouchMode(true); editText.requestFocus(); activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
editText.setFocusable(true); editText.setFocusableInTouchMode(true); editText.requestFocus(); activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
转载于:https://www.cnblogs.com/hechangshou/p/8651489.html