Sunday, August 7, 2016

Android Learning Note: To Set The Color Of Cursor The Same As Text Color In An EditText

To set the color of cursor the same as text color in an EditText, just add a sentence in the layout file like this:

 android:textCursorDrawable="@null"

"@null" here means the color of cursor is the same with the text. It's said that you can change it as you like to set the color arbitrarily. You may have a try.

No comments:

Post a Comment