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
20
votes
5 answers

Android Material Text Input Layout End Icon Not Showing

I am trying to add an end Icon Drawable to my text input layout. I've come across the methods to do so but when I try to implement it, it does not work. Material io says that all that is needed to display a trailing icon is to add…
Amxela
  • 606
  • 2
  • 6
  • 21
20
votes
2 answers

TextInputLayout suffix/prefix

I want to add suffix to TextInputLayout. An example is taken from the material.io Are there any standard solutions?
19
votes
2 answers

Android: TextInputLayouts always have an error icon

I have noticed that since a few days, all my TextInputLayouts have the "error exclamation point" always enabled. I haven't changed anything about those TextInputLayouts for a long time, so I really don't understand what is happening. Here is a…
Valentin
  • 5,379
  • 7
  • 36
  • 50
19
votes
4 answers

TextInputLayout passwordToggle with rounded corners

I'm using TextInputLayout from android design library version 25.1.1. With the following code:
19
votes
3 answers

TextInputLayout's errorview is not removed when removing error message

I have a vertical linear layout with some input fields. Using TextInputLayout I get a nice flow with labels and built-in error messages. My problem is when I add and remove the error-messages. If I add an error message it is positioned below the…
Gober
  • 3,632
  • 3
  • 26
  • 33
18
votes
5 answers

How to remove white box from TextInputLayout

Today I have just updated my dependencies of material design from 1.0.0 to 1.1.0-alpha09 implementation 'com.google.android.material:material:1.1.0-alpha09' Now i"m getting strange issue in com.google.android.material.textfield.TextInputLayout Here…
18
votes
8 answers

android.support.design.widget.TextInputLayout could not be instantiated

I want to integrate android.support.design.widget.TextInputLayout In my android application. I have copied the jar file android-support-design.jar from the sdk to my applications lib folder. I have added below code in my xml file for the Email…
SHIDHIN TS
  • 1,557
  • 3
  • 26
  • 58
18
votes
7 answers

How to Change the Floating Label position of TextInputLayout in android

I have a rectangular shaped Edit Text which is inside the TextInputLayout. I want to put some margin between floating label and rectangular boundaries of edit text but i am not able to do that. I tried different margins parameters but it didn't…
17
votes
2 answers

OutlinedBox TextInputLayout and gravity center?

How to achieve centered new OutlinedBox style with TextInputLayout? Current behavior:
17
votes
2 answers

Custom TextInputLayout android

I am trying to create custom TextInputLayout. How can I create below custom TextInputLayout?
dreamfire
  • 427
  • 1
  • 5
  • 15
17
votes
4 answers

TextInputLayout animation overlaps the text when the text is set programmatically

I am using TextInputLayout with the design support library 22.2.1. I set the value of the EditText programmatically, and when the screen appears, I can see that the hint of the TextInputLayout overlaps the text inside, before moving in the floating…
16
votes
8 answers

Android cannot resolve Material Components

I am getting this error: Cannot resolve symbol '@style/Widget.MaterialComponents.TextInputLayout.OutlineBox' I am getting this error after I added this line to my TextInputLayout in my…
16
votes
3 answers

TextInputLayout set error without message?

Is is possible to set error on Text Input Layout without showing any error message (i'm already doing it in another place)?. textinputlayout.setError(""); won't work unfortunately. What i basically need is the textInputLayout to change its line…
oxcened
  • 165
  • 1
  • 8
16
votes
7 answers

Change color of mask password selector

As you can see in the picture I have a android app with a black background and white text. However there is in fact a "Show Text" icon that looks like an "eye" and it is black as well :(. Is there way to change the color of…
rapid3642
  • 913
  • 2
  • 14
  • 26
15
votes
8 answers

Android TextInputLayout hint overlaps EditText hint

I am facing a weird issue, I have a InputTextLayout and an EditText in it, and I am trying to achieve something like this (shown in image below) (Image from material design guidlines:…