Setting the android:textCursorDrawable attribute to @null should result in the use of android:textColor as the cursor color. oh man that is SO much more efficient than conjuring up a drawable for the cursor to be black!!
I have to have an EditText in my application with a white background. I did this in my theme.xml file
<style name="myEditText" parent="@android:style/Widget.EditText">
<item name="android:background">#ffffffff</item>
<item name="android:textColor">#ff000000</item>
</style>
The problem now is that the cursor is still white and therefore not visible. I did some googling and found this question here on StackOverflow: Set EditText cursor color
The way it's done there is the android:textCursorDrawable
key. But this key does seem to be only available with a 3.2 target. But our clients wants a 3.0 target and I could not find any other solution...
Is there any way i can change the color of the blinking cursor with 3.0 as the target?
Thanks for helping :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With