Questions tagged [android-textinputlayout]

Layout which wraps an EditText (or descendant) to show a floating label when the hint is hidden due to the user inputting text.

Layout which wraps an EditText (or descendant) to show a floating label when the hint is hidden due to the user inputting text. Also supports showing an error via setErrorEnabled(boolean) and setError(CharSequence).

887 questions
6
votes
4 answers

Problem : TextInputLayout with OutlinedBox bug with hint overlaps

I have a problem with my hint when I want write in the EditText my hint overlaps the OutlinedBox so I don't understand what is the problem. So this my code
6
votes
2 answers

MaterialComponents.TextInputLayout.OutlinedBox it doesn't work properly boxBackgroundColor

I use material. I'm going to use a color for TextInputLayout for the backdrop, but something like the one below! hint background not change.i used style and wanted to make changes but it didn't work. In the layout itself I tried to apply the changes…
6
votes
3 answers

How to perform click on TextInputLayout EndIcon button

I know that it is possible to perform a click on a view like this : view.PerformClick() How do I do it on TextInputLayout EndIcon button? Update The problem is that I have a bunch of InputLayouts and use a generic function to set the click…
yaugenka
  • 2,602
  • 2
  • 22
  • 41
6
votes
3 answers

How to insert an icon in the beginning of a Material Text Field

I am trying to insert an icon in the beginning of a Material Text Field. I couldn't find anything suitable in material.io's documentation as well. This is what I am trying to achieve.
6
votes
1 answer

TextInputLayout set color of startIconDrawable programmaticaly

I want to set start icon for my TextInputLayout programmatically, but I faced problem with his color. When I set drawable, its color becomes gray, but original color of it is orange. I know that I can change its color by using startIconTint…
6
votes
1 answer

TextInputLayout styling

I have problem with my custom TextInputLayout. Here is my code
6
votes
3 answers

how to resize the textField and disable floating label in a TextInputLayout?

I'm using the Material design library to make a rounded editText, and I was able to do that but now I want it to look a bit smaller, I used the dense textField style but I still want the height of the view to be smaller than that. The problem is…
6
votes
4 answers

I am trying to make AutoCompleteTextView look like a material Edittext

I am trying to make AutoCompleteTextView look like this image https://ibb.co/ZJxmgK5 but unable to do the same. The outlined box is not visible in the result Below is my current code. Earlier I tried adding an EditText in TextInputLayout but now I…
6
votes
2 answers

TextInputLayout outline hint color

I have a strange bug on a TextInputLayout. The color of the hint of the com.google.android.material.textfield.TextInputEditText goes white on focus. this is how I am setting it:
6
votes
1 answer

colorControlActivated for TextInputLayout doesn't work

This is my main style for the application