Questions tagged [android-textinputedittext]

308 questions
1
vote
1 answer

Disable password toggle ImageButton when TextInputEditText is disabled

When a TextInputLayout's app:passwordToggleEnabled attribute is set to true and a TextInputEditText's android:enabled attribute is set to false, how can one prevent the password toggle ImageButton from being…
1
vote
1 answer

TextInputEditText - CompoundDrawable is not centered

Im trying to add a suffix to my TextInputEditText by creating a TextDrawable then setting that using compoundDrawable. Everything is going fairly well except the drawable gets clipped outside to right of the component. What could be causing this? So…
1
vote
1 answer

Weird behaviour of TextInputEditText if onFocusChangeListener is hooked

I have two EditText in my Activity, each of one is inside TextInputLayout:
Fustigador
  • 6,339
  • 12
  • 59
  • 115
1
vote
1 answer

Changing the text in addTextChangedListener listener of edit text in android gives error

Is it not possible to change the text of EditText in afterTextChanged It gives the error below Is there a specific way to change the text code: inputEmail.addTextChangedListener(object :TextWatcher{ override fun afterTextChanged(s:…
Devrath
  • 42,072
  • 54
  • 195
  • 297
1
vote
3 answers

How to display the line regardless of the focused state in a TextInputEditText?

What is happening: When i click on inputName line is appearing on it What I am trying: To display the line regardless focus is there or not Code:
Devrath
  • 42,072
  • 54
  • 195
  • 297
1
vote
1 answer

How to remain focus on current EditText?

I have 3 EditText (editText1, editText2 and editText3) in my Fragment. When I click "Next" on my soft keyboard the focus currently goes to the next EditText. I also check if the content of those Editboxes are valid (like is valid email etc.). Lets…
1
vote
2 answers

How can I remove the smell line under the EditText?

When the user is click on the line in EditText in Huawei device he get another smell line (under the long line) - see image. I try to do a lot of thing to fix it and I don't find what should I do.enter image description here The is my code: …
1
vote
0 answers

View Pager EditText hint issue in Landscape mode

Using View Pager I want to change edit text hint runtime, It displays correct hint when I scroll view pager but when I tape on edit text to write something it shows wrong hint(Hint of the previous page), you can check with gif file that I have…
1
vote
1 answer

[Android]: java.lang.NoSuchFieldError: No field error_color_material

I am getting the following error when trying to show an error message on the UI's TextInputLayout: E/AndroidRuntime: FATAL EXCEPTION: main Process: com.blablabla.appname, PID: 23691 java.lang.NoSuchFieldError: No field error_color_material…
1
vote
0 answers

Android RuntimeException Failed to resolve attribute at index 24 at android.content.res.TypedArray.getColor