Reputation: 825
I have a white EditText and in Android 3.1 and above the cursor doesn't show (because it's also white). For info, I use
android:background="@android:drawable/editbox_background_normal"
I read on this post Set EditText cursor color that the solution was to set the textCursorDrawable attribute to "@null" which I have tried, but I can't use it because it says that the attribute is unknown.
I have my SDKs set in the AndroidManifest.xml as follows:
<uses-sdk android:minSdkVersion="14"
android:targetSdkVersion="14"/>
but it still won't recognise android:textCursorDrawable
Any ideas?
Upvotes: 1
Views: 4188
Reputation: 24820
Maybe you have not changed the build target for your application. That is why eclipse is not detecting android:textCursorDrawable
Right click on project -> Properties-> Android -> Build Target -> select api level 12 or greater
Upvotes: 5