Questions tagged [android-edittext]
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.
android-edittext
12,101
questions
1
vote
0
answers
22
views
Android: which Listener for EditText SearchView?
So Android code includes AddTextChangedListener that implements TextWatcher() and its methods. Android also includes OnQueryTextListener() and its methods. And there are many uses cases listed here ...
-1
votes
0
answers
10
views
"*" breaks onto nextline after "?"
I have compose edit text that allows multiple lines and I have hint in it. It ends with "?" and i noticed that sometimes if screen is small it can break * onto next line but i dont want this ...
0
votes
2
answers
26
views
Rtl support for drawableEnd of AppCompatEditText Android
I am using this AppCompatEditText like this
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/tilCountry"
style="...
0
votes
0
answers
31
views
how to focus on EditText inside scrollview
I am struggling with this issue for hours right now. so I have an activity with Toolbar and Scrollbar inside its layout. here is the layout
<?xml version="1.0" encoding="utf-8"?&...
0
votes
1
answer
22
views
How to control the saving of words on the soft keyboard?
My application has password editText.
When I enter passwords, the soft keyboard saves them as new words.
How can I stop this from happening?
0
votes
0
answers
16
views
Getting input from edit text and saving it in a txt file in android studio
I am trying to write a database app where a dentist can add all the information of their patients. I am now designing the add new user part.
I am working with fragments so from my new fragment I want ...
0
votes
0
answers
25
views
Android Compose OutlinedTextField -> show suggestion from Messaging App (SMS)
Before hand I was using an EditText in normal views. and when opening an "EditText" -> I would receive a suggestion to input code from SMS.
However now I am using an OutlinedTextField in ...
0
votes
0
answers
17
views
Moving the focus in the series of EditText when Autofill event occur
I tried to move the edittext focus to one to another (next) when selecting the autofill (suggestions from top of the keyboard). But it is not moving properly.
The approach I tried is mentioned below.
@...
0
votes
1
answer
60
views
EditText doesn't accept digits as inputs
I have two EditTexts in my fragment. Both of them have android:inputType set to numberSigned|numberDecimal, since I wish to input only decimal numbers through them, which may be signed as well.
The ...
0
votes
0
answers
30
views
Is it possible to create to an EditText which doesn't wrap lines
I would like have an EditText widget input text in the following way
Long sentence without wrapping
Another long sentence without wrapping
etc
I need to enable both horizontal and vertical scrolling ...
0
votes
1
answer
24
views
Vertical and horizontal scrolling in EditText Android
I need an EditText with vertical and horizontal scrolling and a fixed size, I used ScrollView and HorizontalScrollView but the EditText does not fill the View above, leaving just a small square that ...
0
votes
0
answers
18
views
Android EditText with auto complete dropdown - control adapter options on each key press
I am trying to add an EditText field with autocomplete functionality
(in the form of a dropdown with a list of options that can be selected as the user types into the input box) to a popup dialog.
...
0
votes
1
answer
28
views
Fixing hint placement in my Android application
So, I use TextInputLayout and EditText to input email, but I have some trouble with hint placement. I also don't know how to change the color of this "I" symbol. Here is my XML for this ...
0
votes
1
answer
39
views
Accessing all EditText in ViewGroup getChildCount & getChildAt() vs getTouchables() vs getFocusables()
I'm trying to access all EditText which have been creating programmatically according to an array. As you know Java has getComponents() method which returns array of the components and which allows ...
0
votes
0
answers
38
views
How can I set the hint text if some value is entered into it? (Java,Andorid Studio)
I have 14 EditTexts in the XML, how do I retrieve the hint from the text where some value is entered and pass that hint from the text and set it in a TextView?
I've been trying to solve that problem ...