Can I change the line color on EditText
. When is active it has some greenish color.
Is it
<EditText
android:id="@+id/editText1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:background="@drawable/text"
android:ems="10"
android:textColorHint="#fefefe"
android:hint="@string/text1"
android:textColor="#fefefe"
android:inputType="textEmailAddress"
android:layout_marginTop="10dp"
/>
Use the below code in your res/drawable/text.xml
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:top="24.0dp">
<shape >
<solid android:color="#fefefe" />
</shape>
</item>
</layer-list>
you can set android:backgroundTint="@color/blue" to change the color of the Edittext bottom line
I had the same problem solved it by changing the color of the backgroundTint as follows -
android:backgroundTint="@color/light_color"