et.setFocusable(true); et.setFocusableInTouchMode(true); et.requestFocus(); this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
Android 一进入页面EditText获取焦点并弹出数字软键盘
最新推荐文章于 2021-05-27 05:10:21 发布
et.setFocusable(true); et.setFocusableInTouchMode(true); et.requestFocus(); this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);