Created
June 4, 2014 02:27
-
-
Save mediavrog/9970ad4f97a309542e52 to your computer and use it in GitHub Desktop.
Cursor not visible in EditText in Jelly Bean - this happens if you set a background for the field; to fix it, set the cursorDrawable to @null. Always use this combination when using custom backgrounds.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<EditText | |
android:id="@+id/my_edit_text" | |
... | |
android:background="@drawable/some_bg" | |
android:textCursorDrawable="@null" /> |
Holy shit, dude. That's been bugging me for years! Thanks for finding this out, it works great!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well I've searched for a while, and found a solution.
See this answer.
Use drawable instead of color for textCursorDrawable.