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.

A EditText is an overlay over TextView that configures itself to be editable. It is the predefined subclass of TextView that includes rich editing capabilities.

enter image description here

More information about the EditText:

12098 questions
4
votes
1 answer

why TYPE_TEXT_FLAG_NO_SUGGESTIONS is not working to disable auto corrections?

I have a TextEdit where the user can enter their name. I do not want the editor to auto-correct spelling mistakes. I try to do : myEditText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS); but this didn't do…
zeus
  • 12,173
  • 9
  • 63
  • 184
4
votes
1 answer

EditText weird crash on LG Optimus w/Swype (works on emulator and Droids)

I have an app which works in the emulator and on Droid phones. While testing on an LG Optimus (which BTW has Swype installed) it crashes with the following stack trace (NOTE: it is in the constructor of EditText). What is weird is that supposed…
Sheshadri Mantha
  • 491
  • 5
  • 14
4
votes
3 answers

How to prevent EditText from breaking a line after punctuation

As default, an Android EditText will break a line if the line is longer than the view, like this: Thisisalineanditisveryverylongs (end of view) othisisanotherline or if the line contains a punctuation character, like…
hoangbv15
  • 360
  • 2
  • 4
  • 14
4
votes
2 answers

Edit text working weird after pasting text

When I copy an email from a website and paste it in my edit text, it comes with the rich formatting and then I tried to remove the formatting public void afterTextChanged(Editable string) { CharacterStyle[] toBeRemovedSpans = string.getSpans(0,…
4
votes
1 answer

How do I make 2 characters overlap each other in an Android EditText

I am making a music notation app for Android for one of my school projects. In this app, I don't have a music notation rendering mechanism. Instead, I use a font, which has all different notes in different heights with the music sheet lines in…
hoangbv15
  • 360
  • 2
  • 4
  • 14
4
votes
1 answer

EditText stops displaying characters as I type?

Basically what happens is I will start typing on the keyboard (stock and third party), and all of a sudden it stops showing characters I type in the EditText, (sometimes) resets the caret to the beginning, yet I know I'm still typing because the…
BCS
  • 215
  • 2
  • 14
4
votes
2 answers

Set temporary text in a EditText/TextView in Android?

I'm looking to build a simple input form for username/password, and I was wondering if it was possible to mimic the functionality that many websites offer, namely a temporary string within a text input displaying what the field's purpose is.…
Naftuli Kay
  • 87,710
  • 93
  • 269
  • 411
4
votes
1 answer

Auto fill phone number without country code

I have an edit text that takes in phone number.
Nishita
  • 870
  • 1
  • 9
  • 33
4
votes
3 answers

EditText not showing, typing text on Bottom sheet dialog

In bottom sheet dialog, we have some editext's . When typing those edittext typing can possible but after typing the typing text is not showing also not showing the edittext cursor. When screen touch / scroll edittext is updating. I think its my…
4
votes
1 answer

EditText Autofill bug on Android 10

After I selected/clicked on EditText field, my app have crashed. Nothing special, it's a simple EditText without any style or something. Logs says that this crash occurred in AutofillManager.java. From this information I guess it's some kind of…
geriiie
  • 129
  • 7
4
votes
1 answer

Input Text Field hidden below keyboard in Android webview

I implement Webview in my app in Fragment but in Webview EditText Field Hide when the keyboard appears. I Set WindowSoftInputMode = SoftInput.StateHidden | SoftInput.AdjustResize and android:fitsSystemWindows="true" but not working for me. I also…
4
votes
4 answers

How do you gray out a "Submit" button when specific EditText boxes are empty?

Regarding an Android app I am creating: I have three EditText boxes that need to be filled with numbers/strings. I have a submit button that will start a series of calculations. IF any box is empty and submit is pressed, the app crashes. I have…
Eddie R
  • 41
  • 1
  • 3
4
votes
1 answer

Android ScaleAnimation doesn't scale clickable area

I have a layout structured as follows: LinearLayout1    LinearLayout2        EditText I am applying a ScaleAnimation to LinearLayout1 using a LayoutAnimationController so that all of the views in the hierarchy are scaled by the same amount. After…
gyoda
  • 1,053
  • 2
  • 11
  • 22
4
votes
2 answers

Have different color of hint in error state and normal state

I want to have same color of hint in error and normal state Ive given styles for error state and normal state, hint color shoukd remain grey color only in error state, and error text should be in red color
4
votes
5 answers

Android: EditText not updates when typing text

I have following in my app: layout/dialog_edit_group.xml:
newmindcore
  • 318
  • 3
  • 8
1 2 3
99
100