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

前端 未结 1 1395
借酒劲吻你
借酒劲吻你 2021-01-07 06:25

Here is what it looks like in the beginning when I haven\'t added any imagespan chips -

\"enter

1条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-07 07:17

    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)

    0 讨论(0)
提交回复
热议问题