tagged [android-edittext]
android - how to convert int to string and place it in a EditText?
android - how to convert int to string and place it in a EditText? I have this piece of code: It turns out to be an error. I know I have to change it to string, but how do I do this? I've tried `x.toS...
- Modified
- 22 Mar at 04:16
Handling click events on a drawable within an EditText
Handling click events on a drawable within an EditText I have added an image right of the text in an `EditText` widget, using the following XML: But I want to clear the `EditTe
- Modified
- 1 Aug at 13:18
Limit Decimal Places in Android EditText
Limit Decimal Places in Android EditText I'm trying to write an app that helps you manage your finances. I'm using an `EditText` Field where the user can specify an amount of money. I set the `inputTy...
- Modified
- 31 Aug at 21:32
How can I set the focus (and display the keyboard) on my EditText programmatically
How can I set the focus (and display the keyboard) on my EditText programmatically I have a layout which contains some views like this: How can I set the focus (display the keyboard) on my `EditText` ...
- Modified
- 31 Mar at 19:26
Android EditText for password with android:hint
Android EditText for password with android:hint Just noticed that , and we should be using android:inputType. Was experimenting with it by setting in my xml Indeed it behaves like for EditText, but it...
- Modified
- 2 Jun at 12:56
Android: Vertical alignment for multi line EditText (Text area)
Android: Vertical alignment for multi line EditText (Text area) I want to have 5 lines for the height of the text area. I am using the following code. ```
- Modified
- 16 Aug at 17:3
How to get text from EditText?
How to get text from EditText? The question is quite simple. But I want to know where exactly do we make our references to the gui elements? As in which is the best place to define: When I try it doin...
- Modified
- 20 Nov at 06:10
Setting onClickListener for the Drawable right of an EditText
Setting onClickListener for the Drawable right of an EditText In my app I have a `EditText` with a search Icon on the right side. I used the code given below. ```
- Modified
- 5 Nov at 17:55
How to detect the swipe left or Right in Android?
How to detect the swipe left or Right in Android? I have an `EditText` view in android. On this I want to detect swipe left or right. I am able to get it on an empty space using the code below. But th...
- Modified
- 26 Jan at 15:44
Is there a way to programmatically scroll a scroll view to a specific edit text?
Is there a way to programmatically scroll a scroll view to a specific edit text? I have a very long activity with a scrollview. It is a form with various fields that the user must fill in. I have a ch...
- Modified
- 13 May at 18:47
Set EditText cursor color
Set EditText cursor color I am having this issue where I am using the Android's Holo theme on a tablet project. However, I have a fragment on screen which has a white background. I am adding an `EditT...
- Modified
- 5 Dec at 13:39
How do you set the EditText keyboard to only consist of numbers on Android?
How do you set the EditText keyboard to only consist of numbers on Android? I want my `EditText` to display a keyboard that has numbers visible, no other characters. I have tested with all available i...
- Modified
- 19 Jul at 02:55
Is there a way to define a min and max value for EditText in Android?
Is there a way to define a min and max value for EditText in Android? I want to define a min and max value for an `EditText`. For example: if any person tries to enter a month value in it, the value m...
- Modified
- 21 May at 15:29
Soft keyboard open and close listener in an activity in Android
Soft keyboard open and close listener in an activity in Android I have an `Activity` where there are 5 `EditText`s. When the user clicks on the first `EditText`, the soft keyboard opens to enter some ...
- Modified
- 9 Dec at 06:39
EditText, clear focus on touch outside
EditText, clear focus on touch outside My layout contains `ListView`, `SurfaceView` and `EditText`. When I click on the `EditText`, it receives focus and the on-screen keyboard pops up. When I click s...
- Modified
- 14 Sep at 16:37
How to change style of a default EditText
How to change style of a default EditText I am creating three `EditText`s in my xml file using code like this: ```
- Modified
- 27 Nov at 07:13
Programmatically change input type of the EditText from PASSWORD to NORMAL & vice versa
Programmatically change input type of the EditText from PASSWORD to NORMAL & vice versa In my application, I have an `EditText` whose default input type is set to `android:inputType="textPassword"` by...
- Modified
- 17 Feb at 17:3
How to hide underbar in EditText
How to hide underbar in EditText How can I hide the EditText underbar (the prompt line with little serifs at the ends)? There might be a better way to do what I want: I have a layout with an EditText....
- Modified
- 23 Apr at 09:3
Convert seconds value to hours minutes seconds?
Convert seconds value to hours minutes seconds? I've been trying to convert a value of seconds (in a BigDecimal variable) to a string in an editText like "1 hour 22 minutes 33 seconds" or something of...
- Modified
- 26 Dec at 02:20
Custom designing EditText
Custom designing EditText I have custom designed `EditText`  ```
- Modified
- 4 Oct at 02:43
How to disable copy/paste from/to EditText
How to disable copy/paste from/to EditText In my application, there is a registration screen, where i do not want the user to be able to copy/paste text into the `EditText` field. I have set an `onLon...
- Modified
- 8 Dec at 11:28
Change background color of edittext in android
Change background color of edittext in android If I change the background color of my `EditText` using the below code, it looks like the box is shrunken and it doesn't maintain the ICS theme of a blue...
- Modified
- 22 Dec at 17:18
Changing EditText bottom line color with appcompat v7
Changing EditText bottom line color with appcompat v7 I am using appcompat v7 to get the look consistent on Android 5 and less. It works rather well. However I cannot figure out how to change the bott...
- Modified
- 4 Jun at 21:34
Move to another EditText when Soft Keyboard Next is clicked on Android
Move to another EditText when Soft Keyboard Next is clicked on Android When I press the 'Next', the focus on the User EditText must be move to the Password. Then, from Password, it must move to the ri...
- Modified
- 1 Aug at 09:26
Converting String to Double in Android
Converting String to Double in Android Trying to get double values from an EditText and manipulate them before passing them to another Intent. Not using primitive data type so I can use toString metho...
- Modified
- 29 Jul at 00:7