- //让编辑框弹出来,并显示对谁进行评论
- commentEditText.setFocusable(true);
- commentEditText.setFocusableInTouchMode(true);
- commentEditText.requestFocus();
- //打开软键盘
- InputMethodManager imm = (InputMethodManager)getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
- imm.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS);
关于EditText经常遇到的问题
最新推荐文章于 2021-05-27 20:57:38 发布