Linked Questions

0 votes
0 answers
137 views

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=...
gal's user avatar
  • 71
270 votes
22 answers
409k views

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?
Alex's user avatar
  • 2,763
234 votes
10 answers
151k views

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 ...
Anukool's user avatar
  • 5,391
146 votes
16 answers
196k views

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.
Nitesh Verma's user avatar
  • 2,520
155 votes
9 answers
198k views

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 ...
Suresh's user avatar
  • 5,999
33 votes
6 answers
54k views

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 ...
Moritz's user avatar
  • 10.4k
32 votes
4 answers
42k views

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 ...
Tiziano Gioè's user avatar
9 votes
3 answers
4k views

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,...
Dark Leonhart's user avatar
12 votes
3 answers
5k views

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 ...
Ektos974's user avatar
  • 998
5 votes
6 answers
8k views

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.
Prakhar's user avatar
  • 710
3 votes
2 answers
5k views

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 ...
theQwertiest's user avatar
2 votes
5 answers
6k views

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): ...
Adam Styrc's user avatar
  • 1,547
1 vote
2 answers
6k views

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()); ...
Uday's user avatar
  • 1,729
-1 votes
3 answers
4k views

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 ...
Prabha Karan's user avatar
  • 1,329
2 votes
4 answers
2k views

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" ...
Tony's user avatar
  • 3,835

15 30 50 per page