我想在EditText中更改光标/标记的外观。通常,光标看起来像这样: | 并闪烁。 我希望它看起来像一个闪烁的黑色矩形(1个字符的大小)。像unix终端中使用的标准游标一样。 这可能吗?
答案 0 :(得分:1)
这个问题可以帮助你... Set EditText cursor color
这谈到了你想要实现的类似事情。
答案 1 :(得分:-2)
无法重新实现TextView和android.text.Layout,无法更改光标的外观。光标的外观在getCursorPath()方法中进行了硬编码。