I am working on Android 3.0. I am using an EditText that has a transparent background . The EditText is placed on a layout having a white background. As a result the EditText cursor is not visible (I assume the cursor is white by default) . After going through your forum I found out a solution that says I have to create my own cursor drawable using styles.xml.
But to my dismay, the cursorDrawable parameter is available only in Android 3.1. But I have to work on 3.0 and above.
Is there any solution?
Add these attributes to your EditText, to make the blinking cursor black:
android:textColor="#000000"
android:textCursorDrawable="@null"
It's needed if you're using the Holo theme. And it will work on older Android versions if you set the minSDK value in the AndroidManifest.xml
From: https://stackoverflow.com/a/9165217/1267112
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