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
13
votes
2 answers

EditText hint visibile while transition

In my app I'm using the Android Activity Slide transition. I followed a nice tutorial and everything works as expected except for the hint of my EditText, which is contained within an InputTextLayout:
13
votes
6 answers

android TextInputLayout changes EditText style after setting error to null

for the first time I'm using the new Android's widget TextInputLayout, it's very nice but I'm facing some problem using setError method this is my xml
Apperside
  • 3,542
  • 2
  • 38
  • 65
12
votes
4 answers

How to remove indicator line of TextField in Androidx Compose Material?

I would like to remove the purple line/indicator (see the following image) of TextField. Is that possible or should I create my own custom TextField to achieve that?
12
votes
5 answers
12
votes
3 answers

Changing the arrow color material ExposedDropdownMenu / TextInputLayout

I want to change the arrow color to white. how to do it? here's my code
12
votes
2 answers

Overriding editTextStyle doesn't work with latest Material Components base style

In an app of mine, I'm using the Theme.MaterialComponents.Light.NoActionBar as a base style. In this style, which I call AppTheme, I'm trying to override editTextStyle to provide a custom style for…
12
votes
7 answers

OutlinedBox for TextInputEditText is not working

I am working on login screen where I want to implememt material edit text with following view : Following is my code :
12
votes
2 answers

EditText with TextInputlayout layout With hint and Border

I want EditText like one in above image. The problem is that if I use TextInputLayout it shows default bar at the bottom and I want it with custom borders around it. I also tried using the below examples, Custom TextInputLayout android
Bhavin Jadav
  • 274
  • 1
  • 3
  • 14
12
votes
3 answers

Get parent texInputlayout from child textInputEditText

I am implementing a functionality to change the case of textInputlayout Hint text to upper case when the hint floats up and vice versa. For that I am using OnFocusChangeListener on its child textInputEditText. To make it easy to implement I am…
12
votes
4 answers

imeOption="actionNext" not working in TextInputLayout

I am using floating hint from material design. I want to shift focus from one EditText to the next, So I have put imeOptions="actionNext" in all editTexts and imeOptions="actionDone in the last EditText. But focus is not shifting to next…
rajat44
  • 4,941
  • 6
  • 29
  • 37
12
votes
4 answers

Android | Change theme of TextInputLayout using styles.xml

I want to apply custom style to TextInputLayout's hint and error in one theme and apply it globally i.e. define it in styles.xml and somehow apply it to all TextInputLayouts used throughout the app without having the need to add it inline like…
MiaN KhaLiD
  • 1,478
  • 1
  • 16
  • 28
12
votes
3 answers

Android: Display TextView in the right-side of EditText which is in the TextInputLayout

I am trying to create a layout like in the picture below In the above picture the password field is in the TextInputLayout and it also have a TextView in the right side , which points to the Forget Password Activity. I achive EditText with Textview…
Adarsh
  • 2,219
  • 2
  • 23
  • 37
12
votes
6 answers

Android TextInputLayout Password toggle not visible in new support library

I have compiled with following design library and it is displaying password HIDE/SHOW button at the right of EditText compile 'com.android.support:design:24.2.1'
12
votes
2 answers

Measure height of TextInputLayout error container

Hi I have to make layout as below, edit text has to be in TextInputLayout to have error and floating hint functionality, and spinner on the right must have underline. My question is how to do it, because when I'm adding EditText into TextInputLayout…
falsetto
  • 789
  • 2
  • 11
  • 35
12
votes
5 answers

Align baseline with a TextView which is wrapped inside a TextInputLayout

I want to align the baseline of TextView "Deficient" with that of EditText "10000". They are both inside I tried the following, but can't get it to…