EditText is a thin veneer over TextView that configures itself to be editable.
0
votes
1answer
22 views
Listview loses the value of the editText when scrolled
Hi can anyone please help me with this one? I am using a custom adapter for populating my listview. My listview has hashmap that holds an editText. My problem is when I enter something on the editText ...
-1
votes
2answers
37 views
EditText crashes the app
This is the XML file of my log in layout right now i have written only the layout part for my application no java coding.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
...
0
votes
2answers
28 views
How can I use EditText Number Format in Math (Android)?
EditText is "number decimal." I thought it was an integer so I could use numA to square but it shows me an error "Change type of "numA" to 'double'. Any help would be great appreciated.
EditText ...
0
votes
1answer
14 views
Android - EditText saves T9 suggested values
I have an application where user inputs text into EditText field. After user clicks OK (in keyboard input mode), a correct value is in the EditText (lets say "Smile").
if ...
-4
votes
0answers
16 views
what is wrong with my android code. It give errors at this line. I want to display a toast when there is no input in the EditTexts E1,E2,E3 and E4 [on hold]
what is wrong with this code?
if(E1.getEditableText().length()==0||E2.getEditableText().length()==0||E3.getEditableText().length()==0||E4.getEditableText().length()==0){
String msg="Ooops...some ...
0
votes
2answers
26 views
EditText dynamically changing text size- alternating between two sizes?
I'm trying to limit an EditText to have 3 lines at most, and if the user keeps typing, the font will change size to fit everything on three lines.
However, once I get past 3 lines, it is alternating ...
1
vote
2answers
30 views
How can I make a password to open up a page using a button an edit Text box and if/else statement (Android)
I am trying to make a password to get into an a page in Android. I am using a String password to store a password. ie String password = bob. I am using an EditText box to enter a word and currently I ...
0
votes
1answer
28 views
How can I change the color of arrows that appear when I am editing text
I want to change the color of arrows that appear when I am editing text in EditText , I don't know the name of these arrows,
How can I do that ?
0
votes
2answers
33 views
Android: Two EditTexts dependent on each other
I have two EditTexts. One is for example temperature in °C and the other is temperature in °F. When user edits one EditTexts I want the other to change accordingly.
Problem is that this changes make ...
0
votes
0answers
10 views
Inordinary EditText Focus Sequence
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<!-------------- Edit1 ...
0
votes
1answer
22 views
How to prevent keyboard from opening when activity is opened in android?
In my android app, in my profile edit page, when I start the activity, the first edittext field is focused (blinking cursor), and the keyboard gets displayed.
How can I keep it being focused on ...
0
votes
0answers
23 views
Android: only show cursor in edittext when keyboard is displayed
how can I only show the cursor of an EditText when the keyboard is displayed.
At the moment the cursor is blinking even if the EditText is not active and the keyboard is hidden, which is really ...
1
vote
3answers
25 views
clearFocus in android dialog doesn't work
I have a EditText(searcField) in a android dialog, after I finished the editing, and dismiss the dialog.
then i go to other EditText, the focus is still in searchField.
Any idea?
thanks
EDIT:
...
0
votes
1answer
12 views
Edittext outline box not visible
I have 2 EditText's in a layout. For some reason, the border outline that shows in the preview here(http://gyazo.com/7cb0d1d2c5807e65f65164957b4d13b8) doesn't show when I run the app on my phone or on ...
0
votes
1answer
28 views
Keyboard doesn't show up when EditText is in focus
I want to do the following.
User should be able to input one letter (only letter) from standard keyboard (hardware of software). If he is typing another letter, then previous letter should be replaced ...
0
votes
2answers
21 views
how to get the value of different editText inside the hashmap in android
Please help me fix this one. I'm already stock in this. I am trying to get the values of the editText inside the hashmap using the code below. It creates multiple editText depending upon the number of ...
-1
votes
0answers
33 views
editText keeps refreshing screen?
I have this problem where the screen of the phone keeps refreshing itself? Could this be down to the editText?. It may be my code ..something I'm missing perhaps but the code itself is pretty simple.
...
0
votes
1answer
19 views
Focus particular editText in ListView?
Basically I am using A listView inflated with imageview and EditText.
I want that when my last item of listView is being changed that is editext
another row should be added.
This part is working ...
0
votes
3answers
21 views
How to check the validation of edit text for pan card?
How to check the validation of edit text for pan card like "ABCDE1234F". I am confused how to check the the validation for this. please help me guys i appreciated
0
votes
1answer
28 views
EditText in ListView header in Android
I have a custom view in ListView's header, this custom view contains a set of EditTexts for user input. Then the ListView's body contains a list of products.
My Problem is:
When the user taps on the ...
0
votes
0answers
25 views
Hiding Softkeyboard for EditText in android
<EditText
android:id="@+id/value"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:gravity="right"
android:imeActionId="@+id/action_done"
...
4
votes
4answers
63 views
how to set input type as password to edittext programatically [duplicate]
Hi all I am using alert dialog with edit text.So I want to set input type as password to that edit text programatically.I have searched a lot in google and find out these two methods:
final EditText ...
0
votes
2answers
37 views
How to change the color of a focused EditText when using “android:Theme.Holo.Light”?
I Am using "android:Theme.Holo.Light" in my application, it gives blue as the Default color.
I want to have a EditText when focused like below.
By default it comes like this when applying ...
0
votes
2answers
31 views
show dialogbox from item litsview and edittext
Please help me. Basically I want this to pop up / dialog box when the user clicks an item from listview. DialogBox include edittext and item listview. Thank you
Here is my code MainActivity.class, ...
0
votes
3answers
37 views
How to get the value of the editText in hashmap in android
I have a HashMap populated in the listview. This hashmap contains EditText that must be filled up by the user. My problem is I don't know to get the value of the EditText inside the HashMap.
...
1
vote
3answers
30 views
Scroll a Scroll View which contains Edit Text
my scroll view contains a linear layout which further contains some of the edit text fields. now when I click on a edit text field at the bottom one then soft keyboard appears, but my problem is that ...
1
vote
2answers
32 views
Implementing Search Button on my Keyboard
I'm trying to implement a search button in place of the regular enter button on my inbuilt android keyboard. I tried doing:
resultView.setImeOptions(EditorInfo.IME_ACTION_SEARCH);
@Override
public ...
0
votes
1answer
28 views
ListView Recycler deleting data
I have a custom ListView with a few TextViews and EditTexts and i want to prevent the recycler from deleting the data when an item is scrolled out of view. I looked at other posts but i havent found ...
0
votes
2answers
42 views
2 TextView multilines in android
I want to make quiz app. I have two Textview and one edit text.
I placed the edittext between two textview.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout ...
0
votes
1answer
41 views
Hide EditText from AbsoluteLayout
I have created EditText via xml file. I have to hide it when certain condition get true. I have tried
setVisibility(View.GONE)
and
setVisibility(View.INVISIBLE)
but nothing happens. Is there any ...
0
votes
3answers
26 views
Edittext give empty string when tab the space bar
In my application i have one edittext which is used to add task in db.First i check it out the task if the task is empty means not add in db.My problem is when i tab the space bar in edit text and ...
1
vote
1answer
27 views
Edittext give the new line string instead of string
I have one edittext in my application.when i press the enter key in edittext that will be go to new line /n.My problem is get the edittext value which have "\n\n\n"(3time press enter button).But i ...
0
votes
4answers
46 views
Edittext not visible
In my application I have 3 buttons and one listView and one editText with image.
My problem is that when I am editing task in my editText the size of the editText is reduced very much.This problem ...
0
votes
0answers
4 views
Removing space with GridView consisting of EditText
I have made a GridView which consists of editText as its content . However I want to remove spaces between each row and each column. I have searched and tried solutions given to remove spaces but not ...
0
votes
0answers
6 views
GridView with Editext and using EditText values in a variable
For a school project i have to make an android application which consist of a Grid much like sudoku however of 7x7 dimensions. This grid should consits of EditText(which accepts numbers 1-99 and ...
-8
votes
1answer
103 views
Using onClickListerner() on EditText in Android [closed]
I am trying to make an android app for keeping a tab on fuel consumption. I have 4 EditText viz.
Km reading
Fuel Quantity
Fuel price
Total cost
Km reading input is compulsory, while amongst the ...
1
vote
3answers
51 views
Make edittext look like holo light in all versions of Android
An edittext looks different in a 2.2 emulator than it does in a 4.2 version. I want to make my edittext look like it does in the holo light version on a 4.2 emulator.
I have no idea how to do this, ...
-1
votes
1answer
42 views
Look & Feel of EditText in Android [duplicate]
I am trying to create an EditText field which looks like the one used on the gmail app (compose new e-mail screen) for to field. (It is a field with a bracketed underline)
When I implement a text ...
0
votes
1answer
22 views
Screen is not moving up while entering text in EditText Android
When I enter text in the EditText in my emulator, the screen is not moving up so I cannot see what I am inputting.
I wanted to attach screenshots, but I don't have the required reputation yet.
This ...
0
votes
2answers
34 views
Android EditText – Finding the redlined text and the list of suggested words
I have an EditText view with the spell checker activated. If there is a misspelled word, the word is redlined and a list of suggestions is displayed in a drop down menu. How can I programmatically ...
0
votes
1answer
17 views
How custom seterror() background and icon
A lot of posts talk about this probleme, but nobody give the solution to custom the background of seterror() of EditText. It is really possible?
I have this ...
2
votes
1answer
54 views
+50
After press a key, view go down, only in S3
I have a weird problem. I have a view with a editext field, when the user tap over this, the keyboard shows (I'm using android:windowSoftInputMode="adjustPan"), so this is ok. The problem happen when ...
0
votes
3answers
38 views
Android issue with height when EditText is inserted dynamically
I'm working on an Android application and I have some problems that I can't solve.
In xml, I have a RelativeLayout with one EditText, and dynamically I have to insert one or two EditText more, ...
0
votes
0answers
46 views
How to set a textview's layout_width and layout_height to a percentage of a screen and center it
I'm trying to make a fairly simply layout. It's got a button in the top left corner, a textview (nested in a scrollview so it's scrollable) that I want to be 50% screen_width x 50% screen_height, then ...
0
votes
0answers
32 views
Android EditText Clear Text in ArrayAdapter
I have a problem with clearing one or another Text of EditText objects in ArrayAdapter. In my Adapter there are two key EditText:
- txtIloscKg;
- txtIloscSzt;
The concept is when I complete ...
0
votes
4answers
48 views
Android use of ScrollView and ImageView outside
I'm having some problems with setting some objects in a view.
I have 2 EditTextand 2 Button, one below another. And at the bottom of screen I have an ImageView that I want to stay there without been ...
-1
votes
1answer
27 views
Android how to center an EditText dynamically
Goal
I have a RelativeLayout with some TextView's sets in xml and I want to add dynamically some EditText's, one below another.
Problem
How can I center horizontally those EditText's?
Code
Here ...
1
vote
1answer
36 views
onTextChanged, cant get it to work right
Hey guys I need my search function to act like the contacts. I'm retrieving my list of participants from a server and I rebuild it when the user searches to get there results. Hoover i can only get it ...
0
votes
3answers
29 views
App crashing after adding final modifier to Edit Text
I have an edit text i need to hook to textchanged event to to do a task.I had defined the overrdiimg for edittext first but after adding the text extraction code in the text chnaged event the IDE ...
0
votes
0answers
44 views
EditTexts don't get focus or open the softkeyboard when already there are values in EditText area
I cannot edit my already entered EditText values if the keyboard is already closed. The EditText area doesn't get focus or open the keyboard.
I have declared EditText dynamically in tablerows of a ...