Linked Questions
29 questions linked to/from Changing EditText bottom line color with appcompat v7
0 votes
0 answers
137 views
Changing EditText bottom line color android [duplicate]
How can I change the default EditText bottom line color in android ? <EditText android:id="@+id/label_rename_name" android:layout_width="match_parent" android:layout_height=...
270 votes
22 answers
409k views
How to change line color in EditText
I am creating an EditText in my layout xml file But I want to change color line in EditText from Holo to (for example) red. How that can be done?
234 votes
10 answers
151k views
How do I create ColorStateList programmatically?
I am trying to create a ColorStateList programatically using this: ColorStateList stateList = new ColorStateList(states, colors); But I am not sure what are the two parameters. As per the ...
146 votes
16 answers
196k views
how to change color of TextinputLayout's label and edittext underline android
I am using android design library's TextinputLayout. But couldn't customize the hint color, label color and the underline color of EditText inside TextinputLayout. Please help.
155 votes
9 answers
198k views
How to change textField underline color?
I'm new to both flutter & dart. Currently, using this in one of my personal projects. In all of my form, the underline of textField is showing in blue color. I want to change that to some other ...
33 votes
6 answers
54k views
Changing tint color of Android EditText programmatically
I am trying to change the tinting color of an EditText View programmatically during runtime. Basically i want to change what you would usually apply as ?attr/colorControlNormal like in the default ...
32 votes
4 answers
42k views
Change TextField's Underline in Flutter
I'm working on an application using Flutter SDK. When I use a TextField widget, and I focus it, the underline becomes blue. I need to change this color to red, how can I do it? Screenshot of what I ...
9 votes
3 answers
4k views
Material design for subclass of EditText
In API 21, we can use colorAccent to change the color of widgets like EditText, RadioButton etc. But it doesn't apply to the subclasses of those widgets. I've tried this but it's just like colorAccent,...
12 votes
3 answers
5k views
Android colorControlNormal xml attributes doesn't work pre-Lollipop
I've been trying to change the color of the EditText line on the bottom, but my EditText still doesn't wanna change the color, but it's using the style from Material. I've tried to change the color ...
5 votes
6 answers
8k views
Change color of EditText android
I have an EditText on Dark background. My EditTexts are of black color only(if not focused), so not visible properly. How can I change the color? Below is the screenshot.
3 votes
2 answers
5k views
Custom EditText style with appcompat v7
I created a custom view extending EditText and specified an attribute style to change the background tint color. public class CustomEditText extends EditText { public CustomEditText (Context ...
2 votes
5 answers
6k views
(Material) EditText underline color
My problem is that I don't know how to change underline color of EditText - I have LG Nexus 5 (Android 6). I would like to change normal underline color to white. I used all params like (style): ...
1 vote
2 answers
6k views
How to remove the tint color of EditText or set it to default style in android?
My default tint Accent color in styles is blue and on error occur im changing it to red programmatically like below code Drawable wrappedDrawable = DrawableCompat.wrap(mUsername.getBackground()); ...
-1 votes
3 answers
4k views
How to change the border colour for the button and changing the colour for underline in the editText?
I have tried many methods but my issues is not solved.I am facing the issue in changing the colour for the border of the button and underline in the editText. In changing the colour of the button the ...
2 votes
4 answers
2k views
How to change bottom line color of EditText?
I'm trying to change color of bottom line under EditText. I can see few question on SO like mine, but nothing helps. This is my xml: <EditText android:id="@+id/loginEditText" ...