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.
Sunday, August 7, 2016
Android Learning Note: To Delete The Default Bottom Line Of EditText
To delete the default bottom line of EditText, just add the following sentence in the layout file, of course, between "<EditText" and "/>".
android:background="@null"
android:background="@null"
Subscribe to:
Posts (Atom)