How can I prevent the cursor from resizing in an EditText (MultiAutoCompleteTextView) after I add an imagespan using a SpannableStringBuilder?

拟墨画扇 提交于 2019-12-01 00:26:29

Chances are the ImageSpan changes the lineheight after it's added. If you set a line height bigger than the imagespan, I have a feeling your cursor will remain constant size (but still large). At this point you can add padding to shrink it down to the smaller size you want and it should remain constant.

(I don't have a chance to test what I just wrote, so it's just a theory)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!