Questions tagged [android-textinputedittext]

308 questions
-1
votes
2 answers

Disable EditText Clip board actions in Java/Kotlin

How I can disable text copy and paste action on password kind of fields in Java/Kotlin code?
-1
votes
1 answer

String variable empty after assigning value from editText.getText().toString()

I created a popup menu from a navigation drawer and everything works in regards to the actual popup. However, I have an EditText in the popup and would like the user to enter text into it and then click a button to do other things. My issue is that…
anguyen
  • 3
  • 1
-1
votes
1 answer

How to set value limit in edittext 0 to 300

i want to set value limit in edittext not character limit in edit text. like when i enter 100 it is entered or set max length 3. when i enter 30 it set max length 2 when i enter 4 then set max length 2 when i enter 2 then set max length 3 these all…
-1
votes
1 answer

How to fix the EditInputText null object error?

I am facing a problem on my Android App. I have created a function to verify From SQLite, my login credentials after a button click, but it shows me the error for null object. I have initialized my textInputLayout and textInputEditText and my…
-1
votes
1 answer

Changing EditText focus after keyboard open

I've noticed the problem with EditText focus when I tapped on it. Generally, I have NestedScroll with RecyclerView in which I have a few EditText controls. After tapping one of it is presenting keyboard, but after that my focus is set to first…
-1
votes
1 answer

Change the cursor color programmatically without using Reflection

Change the color of the Cursor of TextInputEditText from the code without using Reflection. I have tried this: val fCursorDrawableRes = TextView::class.java.getDeclaredField("mCursorDrawableRes") fCursorDrawableRes.isAccessible = true …
pixelWorld
  • 329
  • 2
  • 17
-1
votes
1 answer

TextInputEditText error when running acitivity

android.view.InflateException: Binary XML file line #107: Error inflating class android.support.design.widget.TextInputEditText This is my gradle build : dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation…
-1
votes
1 answer

Multicolored edittext hint in TextInputLayout

Is there a way to set multiple colors to the EditText hint when wrapped by android.support.design.widget.TextInputLayout without compromising the behavior of floating EditText Hint? ** e.g:** Headline* 'Headline' in black color and '*' in…
Abhimanyu
  • 11,351
  • 7
  • 51
  • 121
-1
votes
2 answers

How to restrict specific words or numeric sequence in editText?

in android is it possible to restrict edittext in order to reject and show an alert if some words are entered? For example I need to exclude from the edittext input the following words and numerc sequences: "123456", "0000", "administrator", "black"…
Andrew
  • 3
  • 2
-1
votes
1 answer

TextInputLayout with counter - How to not account for empty spaces?

To remove empty spaces of a String at the beginning and at the end, we can use the trim method. The problem is, the TextInputLayout's counter still counts these empty fields. As you can see in the screenshot, it takes my input as valid because it is…
-1
votes
1 answer

Implement tap out from EditText

I have a request from a client which says something like this: after a user inserts his name, on tap out validate with server. I never heard about tapping out from a field in Android yet. (tap out means when you are writing something into an…
sunlover3
  • 1,999
  • 1
  • 20
  • 25
-1
votes
1 answer

How to show the text from edit text input layout to list view?

I am trying to get a text from edit text input layout and show the text on list view when click next edit text drop down button. Like this
-1
votes
2 answers

Clear focus from EditText on button click - Android

There are total 5 EditTexts. I'm calling one method in setOnFocusChangeListener of an EditText i.e txt_location. While I click on SAVE AND CONTINUE button I'm validating all EditTexts. When I click on SAVE AND CONTINUE button txt_location -…
-1
votes
1 answer

How to enable copy and paste in text field in android popup

I am using text field in a popup in android. But there is no copy/paste option in text field. I used the same text field in different activity, and it is working fine. My popup xml is below:
-2
votes
3 answers

I want to get whole text from third party app

I have my own custom keyboard so using the keyboard's inputs method I am getting a whole text from edit text whether it is from my own app or even from a third-party app. Everything working properly expects all Microsoft applications. They provide…
Pravin Suthar
  • 1,403
  • 1
  • 14
  • 25
1 2 3
20
21