Questions tagged [android-textinputedittext]

308 questions
3
votes
3 answers

InputFilter for two capital letters and one or two digits, works only if the first input is a digit

I need to restrict the input that can be entered into a TextInputEditText to two capital letters and one or two digits, as in AB01, CS8, XY99 or ND5. So I wrote this method: /** * @return an InputFilter that restricts input to the format of two…
3
votes
0 answers

How to set endIcon as clear text with password toggle in TextInputLayout android

I need to achieve the password field 'clear able' & 'password toggle' button like below the image.(In image I have implement it using image editing only :P) Is it possible without customization?
3
votes
1 answer

Right side border of textInputLayout is cropped in alertdialog

Here is the custom layout password_alert.xml I have tried increasing the padding in ConstraintLayout. But it still did not work.
3
votes
1 answer

How to ellipsize text if Text Selection enabled?

I have created a layout with two textviews to display some content with text selection enabled. While try to ellipsize text, it does't work. If I disable the text selection, ellipsize works as expected. How to ellipsize text with text selection…
3
votes
3 answers

Android: How to display suffixText of TextInputLayout by default?

I am using the latest version of the android material design library (1.2.0-alpha05). I have added app:suffixText="PlaceHolder" in TextInputLayout. I want suffixText to be displayed by default, but currently, it is visible only when TextInputLayout…
3
votes
4 answers

How to programmatically clear TextInputEditText in Android

I do not want to setText("") to clear the text. I want to simulator the click action of right cross icon. How to do it?
3
votes
4 answers

password toggle icon textinputlayout override error icon

I am using a password toggle to show and hide the password. And I do not want to use the custom drawable. But, when this edit text generate error it overrides the toggle password icon and unable to add padding or margin to that icon. If there is any…
3
votes
1 answer

setEndIconOnClickListener method not found in TextInputLayout

I am using TextInputLayout and TextInputEditText in my activity layout. Here is my xml code:
3
votes
1 answer

Callback on toggling password in TextInputLayout

I have chosen the TextInputEditText for my password field, for using the toggle password feature. Here is my xml code:
3
votes
3 answers

Underline, cursor and hint disappeared at TextInputEditText in TextInputLayout on focus

I have an edit profile screen with bunch of TextInputEditTexts. It worked fine before, but now on focus underline, cursor and hint become invisible. Has anyone faced the same problem? ...
3
votes
1 answer

How to set Android Material-Design TextInputEditText Leading-Icon?

How to set the Leading-Icon in TextInputEditText of Material Design for Android? I only found how to set the Leading-Icon. With drawableLeft the Icon is not centered vertically. Gravity has no effect.
M. Berg
  • 921
  • 2
  • 8
  • 11
3
votes
1 answer

How to fix " TextInputLaout with TextInputEditText view I can not implement to show next focus Edittext using imeOption and nextFocustDown attribute"

I used EditText imeOption working well. But when I use TextInputLayout within TextInputEditText I saw many resources over and Implement it in my code But I cannot get actually result that I wanted.
3
votes
3 answers

TextInputEditText Spelling Correction Crash?

I have a TextInputEditText wrapped in a TextInputLayout. However on some keyboards, when the user has a spelling suggestion, and taps on the word to display the popup list of suggestions, my app crashes hard, leaving the keyboard on screen,…
2
votes
1 answer

How to resize drawable in a TextInputEdit

I have a TextInputEditText field to write numbers down. I want to add a drawable symbol to the end of my InputText which already worked. The problem is, that my text and the drawable are not the same size...So I want to resize the drawable to the…
Sasuke
  • 33
  • 4