Reputation: 4463
When creating an EditText for a form, The cursor and underline appears in red.
How solve this?
After finding this solution I added:
android:inputType="phone|textNoSuggestions"
Upvotes: 0
Views: 829
Reputation: 12300
Change your theme's accent color to white, to change the color of this line and cursor. Your accent color is set to red right now.
To do this, go to styles.xml and check what your main App theme's "colorAccent" is pointing to. Probably it is pointing to '@color/accent' like this:
<style name="AppTheme" ... >
<item name="android:colorAccent">@color/accent</item>
...
To then update the accent color of your app, change your 'accent' (or whatever id it has for you in the styles.xml) in colors.xml to white, like this:
<color name="accent">@android:color/white</color>
Upvotes: 1