-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
对于设置过imageSpan的表情等,无法设置选择态(即设置 BackgroundColorSpan无效),这个有解决办法吗 #4
Comments
我也是这个问题,对于imageSpan表情怎么办??? |
终于解决这个问题了,因为EditText本身可以对表情符选中,所以想到把TextView替换成EditText,布局中也是替换掉,并添加textIsSelectable=true这个属性让EditText不可编辑,添加一个背景,让EditText没有横线,代码中设置选中效果调用EditText.setSelection(int start,int end)方法即可解决,重置的时候,调用setSelection(0) |
这样在文本超过一屏时,选择后就会自动滚到最后 |
这个bug解决啦,请看我的demo https://github.com/ITxiaoguang/SelectTextHelper |
这是来自QQ邮箱的动回复邮件。
您好,你的邮件已成功接收。
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: