Android Autocomplete Textview suggestion list is hidden on down arrow - android

I want to use an autocompletetextview in my project. The problem I am facing right now is that when the user presses the down arrow on the keyboard, which normally closes the keyboard, the suggestion list is dismissed. The keyboard is being closed the second time the user presses the down arrow.
I want the keyboard to close, when the user presses the down arrow. The suggestion list should stay visible. How can you achieve something like that?

Related

How to tap a button with one touch, when keyboard is open (instead of 2)

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.

Home up button highlights after hiding EditText in Android

The problem is that when I click the back button when introducing text in an EditText, suddenly the Home Up button gets selected in a darker color.
I've disabled the Home Up button and it continues happening. What can I do?
Well, I've made some improvements forcing to focus on an element on my layout. But the up navigation button keeps getting the focus after the EditText. The action happens like this:
I hide the EditText that has the focus
The up navigation button (Android robot) gets the focus
My layout element gets the focus
How can I solve that?
Finally solved!
It was a problem of the keyboard of the emulator =S
I had the option to get input from my laptop keyboard, I've disabled it and now it works
Thanks to g00dy for the help =)

Edittext selection menu and soft keyboard

In my activity, I have a multiline EditText that takes a big space on the screen. When I click on it, I enter the edit mode and the soft keyboard shows up. So far so good
Now I want to select the text. So I long press on it, and the selection handles appear. The problem is that when I select multiple lines, the whole layout of the activity will be pushed up to be able to see the selection above the keyboard. But it also pushes up the selection menu that allows to interact with the selection (like Copy, Search, etc.), so the selection is useless!
So best solution would be to make sure the menu stays visible, alternative solution would be to hide the keyboard when selection happens so that nothing is being pushed up.!
As you can see on the screenshot, the menu is almost gone because the selection is right on top of the keyboard, but without the keyboard it should appear just fine

Cannot figure out how to make android keyboard go away, unless back button is press

I have a EditView. When some one clicks on the EditView, the only way the keywbaord will go away is if the back button id press.
I saw some apps have it so when the keyboard comes up, there is a button that says done in the lower right hand corner. When this is press the keyboard goes away.
My app does not do this, does anybody know how they did this?
Also is it possible to have the keyboard go away when the enter key is press, insrad of having it add another line of text?
You can either use TextView.setImeOptions() and pass it actionDone or use the android:imeOptions="actionDone" attribute in your layout.
To close when enter is pressed, use a custom OnEditorActionListener. However, it would probably be better to change the enter key to done as above so as to convey what action will occur.
See this SO question.

Auto complete text remaining on screen

Does anyone know why the search text remains on the bottom of screen (as shown in image below). Steps to get there:
Choose to search for location
qwerty keyboard comes up
auto complete bar appears above qwerty
hit "Done" and the auto complete text remains on screen and relocates to bottom, but search is called
. This does not happen all the time.
With KeyEvent.ACTION_UP the search text "sticks" to screen when clicking "Done" ... goes directly to search
With KeyEvent.ACTION_MULTIPLE, "Done" closes the qwerty and user must click search button to begin search
If you want any word, I think the keyboard do that with predictive text. If only want a list of items ( only countries ) you should use a Spinner.

Categories

Resources