Questions tagged [android-textinputedittext]
308 questions
0
votes
1 answer
Custom Edit text: InputType
I have created a custom EditText and trying to set its inputType to numberPassword but its still showing me digits.
What I tried:
Add inputType in onDraw method of CustomEditText class.
Setting transformation method.
But still not…

Subhan Ali
- 1,370
- 13
- 17
0
votes
1 answer
How can I add image (X) in textInputEditText and clear the field in a fragment?
I have this bizarre code. The old developer created a FRAGMENT and all the components were created in JAVA code, not in XML. I do not know how to put an image in EditText and as soon as I type something, a button appears (x)
How can I add the…

gorous
- 23
- 7
0
votes
2 answers
TextInputEditText custom style issue (When contain text)
I need TextInputEditText bottom line color like below.
Default color => Gray
If user enter text, line color should remain as Blue. Currently, if i
enter input in first edittext and go to other edittext, first one
becoming gray again.
Edittext is…

Srikanth
- 1,555
- 12
- 20
0
votes
1 answer
TextUtils.isEmpty(regUserOtherCity.getText().toString()) doesnt work on button press
I have a spinner of cities with default value "Other City". If the user can't find his city, when he selects Other City, a textInput (Your city) is shown.
When the user enters his city name there and Clicks the button Register, the…

Euclid Stonna
- 49
- 6
0
votes
1 answer
adding textChangedListener to TextInputEditText
I want to add textChangedListener() on TextInputEditText. But can't find any of those listeners.
Like editext.addTextChangedListener( new TextWatcher()...), is that method available for TextInputEditText?
If no such listener is available then how…

shubham prakash
- 11
- 1
0
votes
1 answer
error: incompatible types: AppCompatEditText cannot be converted to String
I want to send data from registration From to the Firebase. I used the design library and used appcompactEditTex instead of simple EditText

zubair khan
- 39
- 7
0
votes
1 answer
Change height for textedit depending on amount of text
So im trying to build chat and the textEdit where you write your message. I want to change height depending on amount of text.
a good thing to know also are that this is in a fragment.
Like in messenger or normal messaging apps.
Kotlin:
fun…

Martin Malmgren
- 78
- 1
- 6
0
votes
1 answer
android edit-text input limit 2048 characters but I need to input 5000 characters
Android EditText input limit 2048 characters.
Here EditText produce a input field. Where user can input 2048 characters…

Abdullah Al Mamun
- 11
- 1
- 6
0
votes
1 answer
0
votes
2 answers
Check box only works once?
In my Android app there is a password editText than normally displays the dots instead of letters, under it there is a check box that is labeled Show Password. When the check box is checked for the first time the password displays but if unchecked…

Karæthon
- 33
- 8
0
votes
2 answers
InputTextLayout cannot perform "getText().toString()" from its EditText properly
I am now writing an AlertDialog method which generates a custom AlertDialog, consisting a TextView and InputTextLayout (weight_InputLayout) for users to enter some number.
However, after I have tested my AlertDialog method, I found that even though…

Luft Schlafer
- 51
- 1
- 8
0
votes
0 answers
My EditText's setText didn't have compiler error, but the app force closed
I want to make my EditText get something from my firebase database, but it can't do setText method
I read many things from stackoverflow, but can't get the problem of my app
Here is the class code:
public class TabFragment4 extends Fragment {
Uri…

Fadli Julianto Erga
- 11
- 2
0
votes
1 answer
TextInputEditText programmatically set hint not goes up on focus
I am changing hint based on phone number and id, if user is entering number then I am programmatically setting hint to Enter 10 digits and when user enter id, the hint is Enter 5 digits
Now the problem is, when I focus on TextInputEditText, the hint…

Nouman
- 31
- 9
0
votes
1 answer
Show "new line" / "enter" action button while using singleLine
Wondering how is it possible to show "new line" / "enter" action button while setting the Input Text View to be singleLine="true"
That "enter" action button shows only when its not a singleLine="false"
Also, I don't want to set the input as multiple…

Daniel
- 36,833
- 10
- 119
- 200