Questions tagged [android-textinputedittext]

308 questions
4
votes
1 answer

how to change material TextInputLayout hint color on empty edittext?

I'm trying to change TextInputLayout hint color in case it's edittext empty and not focused but I can't do that, and here is my layout
4
votes
0 answers

TextInputLayout with TextInputEditText: EMS broken since update

I noticed after updating my libraries to the most up to date version that code that uses ems on TextInputEditText does not work anymore. I could not find the reason behind. The code that worked until the update and now doesn't looks like this (What…
Avinta
  • 678
  • 1
  • 9
  • 26
4
votes
1 answer

change spaces of bottom line in TextInputEditText

I was working on a design that requires all views has an alignment to left. I'm using TextInputLayout && TextInputEditText there was spaces for hint & text that are solved by setting padding to 0dp for TextInputEditText but, I'm stuck in removing…
4
votes
4 answers

TextInputEditText, how can align hint to the top margin

I have some trouble with a TextInputEditText and his hint message if I use the last material library version com.google.android.material:material:1.2.0-alpha02 .. I set 5 lines scrollable textInputEditText and I want to show the hint message align…
4
votes
1 answer

Apply Style in custom view where layout root tag is merge

I have a TextInputLayout with a custom Style that needs to be heavily reused so I am trying to turn it into a custom view. Here is xml to be reused :
4
votes
2 answers

Have different color of hint in error state and normal state

I want to have same color of hint in error and normal state Ive given styles for error state and normal state, hint color shoukd remain grey color only in error state, and error text should be in red color
4
votes
2 answers

TextInputEditText in android not getting focus

i have a spinner and 2 TextInputEditText inside a linear layout. inside a fragment i added this layout to the popup window. for spinner i added a custom adapter with image and text. the TextInputEditText are not getting focus, i tried all the…
4
votes
1 answer

What is difference between hint in TextInputLayout vs hint in TextInputEditText

I found crash in crashlog of "NullPointerException: Attempt to invoke virtual method 'void android.view.View.getBoundsOnScreen(android.graphics.Rect)' on a null object reference" and I verified some stackoverflow suggestions for this crash. I found…
4
votes
1 answer
4
votes
2 answers

TextInputEditText freezes on Input with data binding

I'm using TextInputEditText with databinding - it was running fine until recently. Here's one of the layouts that got this problem:
4
votes
1 answer

Android setCompoundDrawablePadding not working

I have a TextInputEditText in my layout to which I need to add a drawable end. Drawable end is appearing but I am not able to add drawable padding end to it. Below is the piece of code which I tried: …
4
votes
2 answers

Android - How to get hint size of TextInputLayout programmatically when focused?

How to get hint size of Enter Email Id(mentioned in this image) ?
4
votes
0 answers

How to show copy-paste options (Context menu) for MultiAutoCompleteTextView on button click?

I am trying to show context menu (copy-paste options) for MultiAutoCompleteTextView when clicked on button. Here is what I have tried but did not work. mButton.setOnLongClickListener(new OnLongClickListener() { @Override public…
4
votes
2 answers

Error inflating class TextInputEditText

I'm trying to use TextInputEditText in my XML, and I'm meeting this error : Caused by: android.view.InflateException: Binary XML file line #15: Error inflating class android.support.design.widget.TextInputEditText Caused by:…
user3693265
  • 109
  • 1
  • 9
4
votes
3 answers

How to change bottom line color and hint color of TextInputEditText?

I am using TextInputLayout and TetInputEditText to get floating hint. Now I want to change the color of hint and bottom line of an edit text. I want it to get changed when user clicks on edit text. So I tried to change its color onClickListener of…
Sid
  • 2,792
  • 9
  • 55
  • 111
1 2
3
20 21