设置TextView光标的位置

来源:互联网 发布:python推荐书籍 编辑:程序博客网 时间:2024/06/05 19:26

设置光标在文本内容末尾。

CharSequence cs = mTextView.getText();        if(cs != null && cs instanceof Spannable){            Selection.setSelection((Spannable) cs, cs.length());        }


0 0