I am using AutoCompleteTextView (ACTV) in my app.
The ACTV is vertically positioned around 100px from the top.
When user clicks on it, software keyboard opens and the suggestions dropdown appears below the ACTV.
Now I am getting to the bug - when user taps on some suggestion from the dropdown, the dropdown jumps above the ACTV!
So if I want to select a suggestion, I have to tap on the screen twice - firstly when the dropdown is below and then after it jumps to the top (by "jumps" I mean it immediately disappears under my finger and opens above).
Any idea how to circumvent this bug?
Related
Imagine a normal keyboard in android (like English). When pressing and holding A for a while, a new menu with á, ä and other buttons popups up. And while still holding the first finger down on screen, you slide it on top of another of those buttons. As you slide it over a button, it gets into highlighted mode , and when you slide out the highlighting is turned off. If you release the finger, the popup buttons disappear. If you held the finger over one of the buttons, that button's character is being typed into the text field
How can i achieve this functionality on andriod. Any help will be deeply apreciated.
When selecting an item with TalkBack on, the highlighted box appears over the element (as expected).
However when I scroll the page itself (2 finger scroll) the highlighted box floats at its current location, it doesn't stay pegged to the element (graphically).
An unintended consequence of this is that I can line up the highlight box with another element and double tap (a button for example), the button underneath will be selected.
However when I swipe next to the next element, the 'next element' is the element after the originally focused element.
For the life of me I can't figure out what could be causing this odd behaviour. If I go to a different site (like google search for example), the highlighted box stays with the selected element when scrolling, so the further issues do not come up. It tells me that I'm doing something in my app which is funky, but I don't know what could be the culprit.
Image example: http://imgur.com/a/tgsiU
This is in an ionic framework based angular application.
Any ideas of what areas I can look into more?
I am developing an app for Android, which is supposed to behave like a lightweight modal box that presents a drop-down to search and choose stuff from. I decided to use the AutoCompleteTexView for that. My question is, why does the keyboard happen to cover part of the items? I though that AutoCompleteTextView will automatically move up to give space to the keyboard. It doesn't. In fact, it hangs at about the middle of the screen.
The layout that is holding the ACTV is a simple LinearLayout with vertical orientation.
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
Most of the time (but not always), when I finish typing in a or and the soft keyboard hides, the view area is left raised with a black space on the bottom. Clicking, tilting or otherwise engaging the phone corrects the screen. However, user's first motion is usually pressing , but if you click submit it jumps down and you actually just click on the text area again. How do you stop this and get the screen to reset after the keyboard closes.
Take a look at you AndroidManifest.xml
http://developer.android.com/guide/topics/manifest/activity-element.html
I think you need to change android:configChanges.
I have the exact same problem what i did was handle hidekeyboard even in javascript and do something like window.scrollTo(0,0) or $("input[type=text],textarea").blur();
This will cause the the screen to get back to normal position
But there is just one problem when click from input field of type = text to a input field password it internally hide the keyboard which causes the hidekeyboard event to fire and scrolls the screen to top. This is the only side effect of this
Let me know if you find the solution for this