您的位置:首页 > 其它

手动显示光标及软键盘

2016-05-31 17:55 190 查看
<span style="font-size:24px;">  circle_big_image_comment_et.setFocusable(true);
circle_big_image_comment_et.setFocusableInTouchMode(true);
circle_big_image_comment_et.requestFocus();//获取焦点 光标出现
InputMethodManager inputManager =(InputMethodManager)circle_big_image_comment_et.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
inputManager.showSoftInput(circle_big_image_comment_et, 0);   //显示软键盘</span>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  安卓 软键盘 光标