Questions tagged [textinputlayout]
114 questions
0
votes
1 answer
TextInputLayout NullPointerException on setError
I am using TextInputLayout as a container to hold country code and phone number. I have a custom style for this container.

Pallav Bajjuri
- 65
- 1
- 1
- 4
0
votes
1 answer
textinputlayout errorenabled and showing errors
So I have login form, when user click login I will check the inputs.
First what I do, onlick of login button i call textinputlayout.seterrorenabled(false), then when API call is over and I have an error on my editttext i call…

user3278732
- 1,694
- 10
- 31
- 67
0
votes
2 answers
TextInputLayout remove error border
I Had try
mTextInputLayout.seterror(null);
mTextInputLayout.setErrorEnabled(false);
how to set error or remove after correction set boarder as default in TextInputLayout Android Application

Vinod Ranga
- 511
- 8
- 15
-1
votes
3 answers
Android Espresso: How can I type text into a editText embedded in a TextInputLayout
Looking for a way to replaceText or typeText into a edit text embedded in a TextInputLayout.
I have tried a few things like this:
perform(ViewActions.typeTextIntoFocusedView("String"));
but I always end up with this:
java.lang.RuntimeException:…
-1
votes
2 answers
what might cause a ClassCastException after adding TextInputLayout
I added a bunch of TextInputLayout wrappers to my EditText fields.
I got the exception
ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to androidx.constraintlayout.widget.ConstraintLayout$LayoutParams
What might cause…

Andy Weinstein
- 2,639
- 3
- 21
- 32
-1
votes
1 answer
How to change line and hint colors of TextInputEditText programmatically?
1) Getting color from the server
2) Than changing the line and hint of the TextInputEditText to that
color (for all states)
I am using material:1.0.0 for androidx

Yg Jk
- 1
-1
votes
3 answers
EditText gets hidden when Keyboard appears
So, I am using the following part of the code to get Input but as soon as the keyboard appears the text gets hidden under the Hint as in this gif. How do I prevent this from happening.

Achal Sharma
- 152
- 1
- 11
-1
votes
3 answers
Show all setError messages in Android
if (!validateEmail(email) || (TextUtils.isEmpty(email))) {
emailwrapper.setError("Invalid email");
} else {
emailwrapper.setError(null);
}
if (password.length() < 6 || (TextUtils.isEmpty(password))) {
…

HackNode
- 159
- 2
- 11
-5
votes
4 answers
How to change the hint color,underline color hint text,if edit text is empty and unfocused in android?
I have two edit text.First one is email and the second one is a password field.
When I click login button without filling the both fields, the hint color and underline changes to red color in both fields are an unfocused state.
unfocused state at…

user8367573
- 111
- 1
- 7