Questions tagged [android-textinputedittext]

308 questions
0
votes
3 answers

Text input layout throws error on setError method

I am applying the setError() method on TextInputLayout and TextInputEditText but I am getting this error, What I am trying to achieve is the error tooltip.I am in no mood of using any third party libraries to achieve this.\ Here is what I tried and…
oldcode
  • 1,669
  • 3
  • 22
  • 41
0
votes
0 answers

How to give different color for inline error message and line color in textinputfieldeditext

I have TextInputEditText where I am showing inline error message also. Now the problem is whatever inline error message color I have given the same color is reflecting for the line also. How to give different colors for inline error message and…
shree
  • 158
  • 2
  • 11
0
votes
1 answer

Text input Edit text Set Error handling Device rotation

am setting Error on an edit text for validation. However, if device is rotated then the existing style goes off and new style appears in edit text. Is it something I need to do in OnSavedstate method or is there any work around for this..!
Tech Cruize
  • 107
  • 1
  • 2
  • 16
0
votes
1 answer

How to make edittext in android always have 2 decimal digits regardless of the value entered by the user?

I want my edittext to always have 2 decimal places at the end regardless of the value entered by the user. How to accomplish this. Tried setting it with aftertextchanged method but it goes into an infinite loop.
0
votes
3 answers

Android: Dashed line under EditText with fixed size

If I have an EditText that allows the user to enter only 6 digits. How can I create a line under each digit, with a small space between each one. Other questions are addressing scenarios for a dashed line as a divider in a layout only. Question…
0
votes
1 answer

TextInputEditText set hint start animated if edittext is not empty

I wanted to make my hint to not animate if the edit text is empty. If user start typing the hint will move up, but if the edit text is empty, the hint will return into the edit text. I have tried @Override public void beforeTextChanged(CharSequence…
yuzuriha
  • 465
  • 1
  • 8
  • 18
0
votes
2 answers

EditText not changing correctly

I am new to Stackoverflow. I am trying to make a Unit Converter in which the function "calculateCurrency" returns a Double value of the result. But the value of TextView "outputNumber" is always changing based on the previous input. Ex- If I type…
0
votes
2 answers

Custom style for all Edit Texts in the application

I have an Android application which uses Material design theme with backward compatibility through AppCompat. There are multiple Textview's and EditText's in my application. I would like the same properties to be applied to all these TextView's and…
Zax
  • 2,870
  • 7
  • 52
  • 76
0
votes
1 answer

When I push a button in my app, all of the editText and TextViews move to the left side of the Screen

I am trying to build an app in android studios for a class and I am trying to test my app on an Samsung Galaxy S4. when I push a button on the screen to save the data the user inputs, all of the editText and TextViews get shifted to the left side of…
Justin
  • 39
  • 7
0
votes
2 answers

Android soft keyboard not pushing up views that are reselected

So, I have a EditText and I have a function that is hiding keyboard when you click outside EditText. What happens is next: First time EditText is selected, keyboard comes up and it pushes whole View up. I deselect EditText (click anywheere otuside…
0
votes
2 answers

TextInputLayout display error on orientation change Android

Hi i am using TextInputLayout With TextInputEditText like this
0
votes
2 answers

Drawable gets changed if clicked twice on edit text

I have two edit text views on which I have added two drawables. One is edit_text_bottom_line and another is edit_drawable. Now I want to show edit_text_bottom_line drawable onClick of an edit text input.So I can see the layout like this : This…
Sid
  • 2,792
  • 9
  • 55
  • 111
-1
votes
0 answers

EditText and .setSelection()-Methode duplicates letters on Samsung Devices

Here I have an EditText which is prefilled with underscores. In the onTextChanged()-Method I replace the Underscores with the typed Letter. The Code is correct so far. Because I add and delete one Letter at the same Time I need to set the Selection…
-1
votes
1 answer

Android EditText hint above text?

How can I create an android EditText, where the hint goes above the text when you tap inside and start typing?
-1
votes
1 answer

How to increase custom edittext height?

I have a custom edittext and I want to increase height responsively.I tried to add cardview but it crushed edittext hint and click event.Do you know any options or have idea? How can I increase edittext height responsively for all phones sizes ?