Skip to content
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

Open
xiaoxiaScut opened this issue Aug 3, 2017 · 5 comments

Comments

@xiaoxiaScut
Copy link

No description provided.

@huangrong151
Copy link

我也是这个问题,对于imageSpan表情怎么办???

@Alvin3225
Copy link

终于解决这个问题了,因为EditText本身可以对表情符选中,所以想到把TextView替换成EditText,布局中也是替换掉,并添加textIsSelectable=true这个属性让EditText不可编辑,添加一个背景,让EditText没有横线,代码中设置选中效果调用EditText.setSelection(int start,int end)方法即可解决,重置的时候,调用setSelection(0)

@lixiaoshaxing
Copy link

这样在文本超过一屏时,选择后就会自动滚到最后

@ITxiaoguang
Copy link

这个bug解决啦,请看我的demo https://github.com/ITxiaoguang/SelectTextHelper

@xiaoxiaScut
Copy link
Author

xiaoxiaScut commented Apr 18, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants