Category "android-edittext"

Android Kotlin: onTextChanged not being triggered for EditText

I am creating an EditText box with line numbers on the side. To achieve this, I have code in the onTextChanged method of the addTextChangedListener that updates

Show or Hide text using password toggle

I am doing show or hide password using below code pwdLayout.setEndIconMode(TextInputLayout.END_ICON_PASSWORD_TOGGLE); I am able to achieve show or hide passwor

how to Save Inputted Values ​from Edittext into Array?

I am making a program to get Values ​​from edittext and store it in an array then I want to display that array on screen and here is my command Edi

Android Edit Text Focus Gone after input things in expandable list view

I have problem with the edit text. I have edit text inside child view for each group, and I can add the new group dynamically, when I key in the edit text for t

How to create a group of EditText with aflow between them

I have to create a group of EditText s that each can contains 1 character of a pin code with auto flow between like in the following image - when user tapping

OutlinedBox for TextInputEditText is not working

I am working on login screen where I want to implememt material edit text with following view : Following is my code : <com.google.android.material.textf

how to set one textwatcher for dynamic more than Edittext in android

I Want to set one textwatcher for dynamic more than Edittext .if I am Creating Dynamic Edittext I want to use One textWatcher for all Dynamic Edittext.if anybod

Change EditText.setError() background and error message android

I want to change the text and background color of error message for invalid email address. I tried but my text message doesn't display any content. here is my c

How to enable fast scrolling to "EditText Field" in android application

I am using EditText, and it has good amount of matter to scroll and read. Now my problem is, it's scrolling slow. So, i want increase it's scrolling speed. If a

Making textinputlayout uneditable and setting click event on it

I want to make textinputlayout uneditable by user and when user click on it i want to perform an action. I added android:focusable="false" inside edittext of te

The specified child already has a parent. You must call removeView() on the child's parent first (Android)

I have to switch between two layouts frequently. The error is happening in the layout posted below. When my layout is called the first time, there doesn't occu

How to avoid multiple triggers on EditText while user is typing?

I use the following code to perform search when user types in an EditText : EditText queryView = (EditText) findViewById(R.id.querybox); queryView.addTextChan

Change particular Edittext box locale to English if App locale is arabic

I am working on a application which is having Arabic and English language like user can switch to any language between these two,My problem comes when i change

Android Autofills For EditText is not Dark/Night Mode friendly

I have a email and password edit text. When Google Autofills popup, the text is not visible in dark mode/night mode. The rest of the app supports night mode wit

Show RecyclerView/PopupWIndow by anchoring below or above edittext depending on where the cursor is and depending on screen available height

I am trying to display @ user mentions like facebook or twitter. I am able to implement this functionality. But i have a ui problem. If edittext is at the botto

Show RecyclerView/PopupWIndow by anchoring below or above edittext depending on where the cursor is and depending on screen available height

I am trying to display @ user mentions like facebook or twitter. I am able to implement this functionality. But i have a ui problem. If edittext is at the botto

How to draw rounded rectangle in Android UI?

I need to draw a rounded rectangle in the Android UI. Having the same rounded rectangle for TextView and EditText would also be helpful.

EditText not automatically saved on screen orientation change

I read that Android automatically saves the content of EditText objects when an application is about to be stopped or killed. However, in my app the content of

Converting a string to an integer on Android

How do I convert a string into an integer? I have a textbox I have the user enter a number into: EditText et = (EditText) findViewById(R.id.entry1); String he