The EditText is the standard text entry widget in Android apps. If the user needs to enter text into an app, this is the primary way for them to do that.

learn more…| top users | synonyms (1)

-2
votes
2answers
32 views

show an alert & remain in same activity if the checkbox is checked and the textbox remains empty

Show an alert & remain in same activity if the checkbox is checked and the edittext remains empty.Below is my code:isOnline.setOnCheckedChangeListener(new CompoundButton....
0
votes
1answer
18 views

setText() of EditText not working inside onTextChanged method

From a newbie in android, I have a custom ListView of food items, where each item has item name, quantity and amount. quantity is Edit text and amount is text view. Initially in amount field i'm ...
0
votes
1answer
13 views

One touch on EditText inside TextInputLayout generate two or more events

I have one EditText inside a TextInputLayout:<android.support.design.widget.TextInputLayoutandroid:id="@+id/inputLayoutDoB"android:layout_width="match_parent"android:...
-2
votes
1answer
37 views

delete the contents of an edittext

I have 9 edittext and a button back I look when we click on the button back the content of a selected edittext is delete help me pleaseback.setOnClickListener(new View.OnClickListener() {@...
0
votes
1answer
41 views

How to optimize custom EditText for large amount of text (code)?

I'm writing a text editor similar to QuickEdit and Turbo Editor. However, I faced the problem that when my EditText deals with a large amount of code lines, it becomes slower and lagging.From this ...
0
votes
0answers
30 views

EditText hint automatic horizontal scroll (marquee) [duplicate]

I am using EditText which is of single line. However, the hint of the EditText is larger than the size of EditText layout. I want the hint to horizontal scroll automatically (with or without focus) ...
1
vote
5answers
62 views

How can I clear the EditText with onClick when the cursor is focussed on another EditText?

I have two EditText widgets(editText1 and editText2) both has values populated by a button and the cursor is focussed on editText1. I have the listeners on both editText as shown in the code snippet ...
0
votes
2answers
38 views

How can I define an ID for my EditText field programmatically?

I have an Activity in my App that adds more EditText fields to my view when a button is clicked.Now I want to create a new ID for every created EditText-Field. Then I want to useeditText.setId(...
0
votes
1answer
24 views

Oreo requestFocus does not work

When i trying to request focus of EditText - it doesnot work (On Android >=8)<EditTextandroid:id="@+id/name"style="@style/TextInput.Text"android:layout_width="match_parent"...
1
vote
1answer
29 views

Edittext scrolling inside Recyclerview and NestedScrollView android

I have an edittext which is of inputType textMultiLine inside RecyclerView which again is in NestedScrollView. I have a functionality in which I have to take Recyclerview inside the NestedScrollview. ...
0
votes
2answers
25 views

How to input Multiple Data in one EditText separated only by a comma?

I want to create a simple application on Android Studio that can compute the Mean or the Average of the data. The thing is I will only use one EditText to input Multiple set of data.This is my ...
0
votes
0answers
14 views

Espresso test click withIn EditText CompoundDrawables

I am learning UI testing using Espresso. In espresso on click of drawable should show another page. But using custom matcher also didn't click that drawable item. How to approach for this?Want ...
0
votes
0answers
49 views

Code Review - Adding items to ListView

I'm just starting to learn android programming and I was hoping someone could look over my code and possibly offer suggestions. I used a couple final's that felt a little hacky, so I just want to make ...
0
votes
2answers
26 views

Continuous OTP input with EditText

I am building this application which sends OTP to users mobile and prompts the user to enter the 4 digit OTP. Now this prompt I am trying to make will have 4 horizontally spaced one character(digit) ...
2
votes
2answers
30 views

Android edittext two decimal places

I have an editText where the user can enter an amount. So I want that this editText doesn't allow the user to enter more than two decimal places.Example : 23.45 (not be 23.4567)What's the best way ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,