I set setCursorVisible(false) on my EditText to get rid of the blinking cursor. Unfortunately, this also gets rid of highlighting. Why? How can I get rid of the cursor and not the highlighting?
I set setCursorVisible(false) on my EditText to get rid of the blinking cursor. Unfortunately,
Share
Just glanced at the code for
TextView… seems it only draws the selection highlight when the private membermCursorVisibleis true. The behaviour you’re seeing is evidently by design.To workaround it I’d try creating and setting a
BackgroundColorSpanfrom the current selection.