Questions tagged [android-textinputedittext]

308 questions
1
vote
2 answers

how do I display the alternating icons in editText?

so I have editText with closes and success icons and maximum password 6, the first thing I do is if the password is not maximum 6, the icon remains closes like I drew, if the password is maximum 6 then the closes icon changes to the success icon, my…
1
vote
2 answers

Setting and reading an EditText in Kotlin

I have a simple issue (I hope). I have two preset values (IP and port) that I need the app user to be able to change. I have two values in a class. public class SoftOptions { var RemoteHost: String = "192.168.43.237" var RemotePort: Int =…
1
vote
1 answer

how to keep button disable any editText Empty?

how to keep button disable any editText Empty ? i've try with implementation 'androidx.core:core-ktx:1.1.0': txtEmailOrNoPhone.doOnTextChanged { text, start, count, after -> if (text.toString().isEmpty()) { …
1
vote
1 answer

EditText inTextInputLayout calls onTextChanged twice for first letter only

I am developing an open source text masker. You can click here to see source code. My problem is that, when I wrap my custom edit text with TextInputLayout, onTextChanged is being triggered twice only for first letter. Then it works as…
1
vote
2 answers

How to create textinputlayout with bottm shadow

How to create TextInputLayout shadow, I have created but the hint is displayed bottom off and then I am editing the edit text then both are text center and also attach shadow login code Please let me know if you any question . Please sees this…
1
vote
1 answer

Any reason why `TextInputLayout` would use style colors to draw a cursor but not the underline?

I am trying to set the underline color of a TextInputEditText in a TextInputLayout. When setting colorControlActivated to the desired color, the cursor changes color but the underline does not respond. I have tried: Creating a style with…
1
vote
3 answers

How to fix TextInputLayout passwordToggle?

I created a simple login page with validations but i have a problem in the password section when i want to use passwordToggleEnabled the app crash and don't open no idea why since i have 0 errors. My project in on API 26. I have added in build…
1
vote
1 answer

endIconMode in TextInputLayout

I'm working with TextInputLayout and inside TextInputEditText. I used app:endIconMode in TextInputLayout, then distance from hint and baseline are bigger than before, how to retrieve this distance? This is my code: …
1
vote
2 answers

Is there a way to create non-filled TextInputEditText with TextInputLayout in 1.1.0+?

I'm trying to migrate from Material components 1.0.0 to 1.1.0-alpha07 in order to be able to use ExposedDropdown style. However, it messes up all my TextInputEditTexts as they are meant to be neither outlined nor filled. I've tried setting…
1
vote
2 answers

how we can specify input language for specific EditText(not for whole app) any help will be appreciated

how we can specify input language for specific EditText(not for the whole app) any help will be appreciated ..for example, for EditText1, I want to open the English keyboard and for EditText2 want to open some other language any help...
1
vote
3 answers

How to make textinputedittext editable and uneditable programmatically

I am currently using TextInputEditText inside TextInputLayout. And wants to control editabilility programmatically. Make it editable on button click and uneditable clicking another button. deliveryQuantityTie.setFocusable(false); set focus false…
Bashir Fardoush
  • 184
  • 1
  • 10
1
vote
4 answers

How to deselect the TextInputLayout's border programmatically

I want to deselect the TextInputLayout when the user presses the back button or cancels the option menu edit item. thus, as you see in pictures, the TextInputLayout doesn't deselect after the edit failed or canceled. I tried different methods and…
1
vote
1 answer

Change TextInputLayout border color in unfocus state

I have a TextInputLayout with TextInputEditText inside. TextInputLayout realise theme to get his border color yellow when it focused and unfocused: TextInputEditText: style="@style/MyTextInputLayout" MyTextInputLayout:
1
vote
1 answer

How to handle onclick events on the compound drawables of a TextInputEditText?

How can one detect click events on compound drawables of a TextInputEditText?
Robin Davies
  • 7,547
  • 1
  • 35
  • 50
1
vote
0 answers

TextInputLayout passwordToggle icon set enabled

Is there any way to do setEnabled = false passwordToggle icon? I change the color of passwordToggle icon when there is no text in password field. (I make it look disabled-not clickable) but of course it still works. textinputlayout.setEnabled =…