I was wondering if it's possible to keep an EditText's orange highlight around selected text when the EditText loses focus, until the user changes the selection?
I'm creating a find/replace feature in my app and say if the user selects the first 3 characters in the EditText, then decides that he/she wants to replace the selection with XXXXX and clicks on the other EditText that the user inputs what they want to replace with, the orange highlight dissappears from the original EditText, so the user can forget what he/she is going to replace, therefore I'm wondering how I can keep the orange highlight even on lose focus to prevent the confusion.
Thanks.
Related
I am making an android app where the user fills up a form. The client wants that out of many of the fields of the form, The user should see the compulsory fields first and then if the user wants then he/she should click on a button named as "More Fields (Optional)" and as soon as he clicks the button the button should disappear and then the user should see the other fields laid out one after the other.
The form looks like this now
I have already tried setting the visibility of the edit Text to invisible, but the problem is that even if the text fields are invisible they take up most part of the screen.
I have been scrolling through the android forums but i got no hint as to how i can achieve it.
It worked, I set the visibility to Gone and then everything happened as it was supposed to be.
I have the keyboard open in my app, I want the user to be able to type, and then tap a colour selector widget I have made (which changes text colour). The problem is that it takes 2 taps, the first one closes the keyboard, the second one actually selects my colour picker. Is there a way to make this one tap? and also keep the keyboard open if possible, so they can change colour then go back to typing without focus issues.
I have multiple text fields in my Android activity. When the user enters data in one text field and press enter, I want the cursor to move to another text field which is next to the current text field.
You can use android:nextFocusForward to specify which view will receive focus after the action button is pressed, this is the default action button.
I am a beginner with android development, and I was wondering if it is possible to make it so that when the user touches the EditText, no keyboard pops up. I want this because I have created buttons that correspond to numbers, so when they touch the button, a 1 will appear in the edittext.
You should use a spinner (http://developer.android.com/resources/tutorials/views/hello-spinner.html) with all your numbers loaded from an array resource.
Any way, if you don't want to edit your EditText you could set editable to false on the XML layout.
android:editable="false"
In my Android application I want to add charecters while the user is entering the data. (ex:if user enters 'a' I want to show '(a' in EditText).
I believe this happens automatically. When the EditText gains focus, a connection is made between the edittext and the input manager. Basically anything that is entered via the input manager is then sent to the edittext. So just by clicking on the EditText on the screen and then typing, the letters should appear on their own.