Questions tagged [android-textinputedittext]
308 questions
1
vote
1 answer
imeOptions="actionNext" doesn't move to next EditText but focuses
I have android:imeOptions="actionNext" for "enter pin" EditText
and android:imeOptions="actionDone" for "repeat pin" EditText
But when it's focused on "enter pin" and I press next button on keyboard it focuses to password eye-icon of the same "enter…

user924
- 8,146
- 7
- 57
- 139
1
vote
0 answers
Change Edittext accessibility announcement for inputType password
By default if the inputtype of edittext is "numberPassword", the talkback announce the field as "Password + {hint}". Since I use the edit box for masking some input fields other than password, I want the talk back to announce the hint only. Is there…

Paras Dhawan
- 364
- 8
- 23
1
vote
1 answer
Getting overlapping hint over com.google.android.material.textfield.OutlinedBox
While working with com.google.android.material.textfield.TextInputLayout, I am getting overlapping hint over the outlined box. This is the style I'm using:
Widget.MaterialComponents.TextInputLayout.OutlinedBox
Here's my…

Partha Chakraborty
- 413
- 4
- 18
1
vote
3 answers
How to constrain a View with a TextInputEditText nested inside a TextInputLayout
I am trying to constrain the height of a MaterialButton to be the same as the height of a TextInputEditText by aligning them top to top and bottom to bottom.
However, I cannot achieve that because TextInputEditText is nested inside a…

MMasmoudi
- 508
- 1
- 5
- 19
1
vote
1 answer
Set Text in EditText resets the cursor as well as turns off the suggestions from keyboard
There appears to be 2 problems I am facing when we manually set the Edit Text.
The cursor is reset to the first position. (Which could be resolved by getting the cursor position and setting it after updating text)
The suggestions (candidates) list…

Monster Brain
- 1,950
- 18
- 28
1
vote
2 answers
Edittext is gaining focus and showing the keyboard after AlertDialog dismissed
I have an EditText in a fragment and in an AlertDialog. I'm using the EditText and then click the done button. But whenever I dismiss the AlertDialog the Edittext is gaining focus and showing the keyboard. I don't want to show the keyboard after…

Murad Ismayilov
- 57
- 1
- 5
1
vote
3 answers
Show label of TextInputEditText when not focused on this
I have a layout with two TextInputEditText and when I set a text on this (programmatically or with xml) and set focus on another TextInputEditText, the above label of TextInputEditText was hidden.
I want to show this label even a text was written in…

Fahim
- 384
- 5
- 20
1
vote
0 answers
TextInputEditText is not showing the typed text/number when typing
I have to create a form in my application and i used com.google.android.material.textfield.TextInputEditText. the same is worked earlier but now when type a number or text in my edittext field it is not displaying what i am typing but after remove…

developer
- 135
- 1
- 2
- 11
1
vote
2 answers
Android TextInputLayout writing focus issue when height is bigger than the screen
I have a TextInputLayout like this:

RisKakaN
- 93
- 1
- 13
1
vote
1 answer
how to click on drawableRight on every TextInputEditText
how to do click on drawableRight edit image of every TextInputEditText? I want to click on the edit icon and then enable to edit each field. How can i do this?

TB13
- 367
- 13
- 23
1
vote
1 answer
TextInputEditText resizing text
I have this TextInputEditText widget (Material Design)
when there is too much text on the field, it gets cut off. I want to resize it until a certain size

software is fun
- 7,286
- 18
- 71
- 129
1
vote
2 answers
can't get data from edit text, Android Kotlin
I got null data when try to get data from edittext
there is my code
class LoginActivity : AppCompatActivity() {
lateinit var etUsername : EditText
lateinit var etPassword : EditText
var username = ""
var password = ""
override fun…

Thoriqul Umar
- 35
- 1
- 1
- 6
1
vote
0 answers
Android EditText.drawToBitmap() Shows No Text
I'm trying to convert a layout to a PDF. It is full of views from a simple TextView to custom views. Everything works just fine except for the EditText. I see the underline for the EditText but no value.
One attempt is to draw the view directly to a…

Sababado
- 2,524
- 5
- 33
- 51
1
vote
1 answer
TextInputLayout hides text
Trying to set text in com.google.android.material.textfield.TextInputLayout. But hint is alway at the upper position and hides text, what can I do do fix this

Basil
- 17
- 1
- 6
1
vote
1 answer
Using Linear Layout with TextInputLayout but facing a problem
The image is a screenshot of the fragment in which I have applied the Linear Layout
The XML file of the layout is below

shantanu srivastava
- 181
- 1
- 2
- 11