lika85456 lika85456 - 11 months ago 92
Android Question

How do I change the EditText divider color?

I have an

in my app, if i click it, the divider color changes to pink, how can i change this color?
This is how it currently is:


Answer Source

By default, android uses your colorAccent as the divider color, and your colorAccent is apperantly pink. So, to change it:

1.Go to styles.xml and add this:

<style name="EditTextStyle">
    <item name="colorControlActivated">#YOURCOLOR</item>

2.Then, on each one of your EditTexts, add the attribute:


More info on this SO answer