改变的EditText光标颜色光标、颜色、EditText

由网友(奈何橋下的约定)分享简介:如何修改的EditText的的光标的颜色的编程?在安卓4.0及以上的光标颜色的是白色的。如果的EditText 的背景也是白色的,它变得不可见。 In android 4.0 and above, cursor color is white. and if EditTexts background is also...

如何修改的EditText的的光标的颜色的编程?

在安卓4.0及以上的光标颜色的是白色的。如果的EditText 的背景也是白色的,它变得不可见。

In android 4.0 and above, cursor color is white. and if EditTexts background is also white, it becomes invisible.

推荐答案

在你的EditText属性外,还有一个属性安卓textCursorDrawable

In your EditText properties, there is an attribute android:textCursorDrawable

现在将其设置为 @null 喜欢,

安卓textCursorDrawable =@空

所以,现在你的EditText光标是一样的你的EditText TEXTCOLOR。

So now your EditText Cursor is same as your EditText TextColor.

借鉴设置的EditText光标颜色

阅读全文

相关推荐

最新文章