I have developed an application for the slate 21 hp device. I wrote code for the next button of the soft keyboard and it is working fine. However, on long press on next button it shows prev button but when I click on it, it performs some unusual way. I researched and found that we can use either next or prev, so I want to know is: when the device is showing prev, is there any way to hide the prev button?
Thanks in advance.
you must change android:imeOptions="actionNone" in your edittext or other component
Related
I'm building pwa apps with vuejs...
One of them has a curious behavior since a short time https://scenaristeur.github.io/agent/
It seems that the "Go" button in the virtualKeyboard is changed to the "Next" button and I don't know how to catch a press on it with vuejs.
I think remember that three month ago it worked as expected, https://www.youtube.com/watch?v=YT61BcjGfwc&t=35s : as far as i remember, this demo was ok on Android
Today I have this behavior https://www.youtube.com/watch?v=IQZsyVfPJjY at 00:47, I have a "GO" Button until I click on a node at 01:12, then I have the "Next" button on the virtual keyboard at 01:27.
Clicking on a node opens a new form that allow the user to "edit" the node ... Is this that form that change the behavior of the virtual keyboard, changing the "go" button to the "next" button ? here is the code of the "editNode.vue" https://github.com/scenaristeur/agent/blob/atomix/src/views/NodeEdition.vue
I have tried to catch it with
v-on:keydown.enter="onEnter"
v-on:keydown.tab.prevent="onEnter"
but it does not seem to work
https://github.com/scenaristeur/agent/blob/cde744dfb9157922334f0c2a885c9fc150a0bd07/src/views/CommandInput.vue#L13
is there a way to always have a "Go" button on this "CommandInput" form?
I know I have change some code, but it seems to be the same on another project (https://scenaristeur.github.io/agents/) where I have not change the code and I had never seen this behavior before.
Could it be a Android system update that recently changed the behavior of the keyboard ? I'm on Android Samsung J5-2017 / ANdroid 9 / kernel 3.18.91-16642474
How could I change my code to always have a "Go" button for this input that I can catch with v-on:keydown.enter="onEnter" or how could I catch the "Next" button ?
i m able to add a next button to soft keyboard but i also want to add a previous Button is this possible if yes please tell me how ?
i m trying this
Android - add next and prev button to softkeyboard which appears on click of an edit text in my activity
Thanks
Please see the first answer of your own reference. It has a comment saying You cannot have both next and prev. You can have next and done but not next and prev. Just check this url. developer.android.com/resources/articles/on-screen-inputs.html
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.
I'm making a simple flashcard application for Android. In the app I have four buttons - one to show answers and three to grade. When I press the "show anser" button, this button disappears (i use .hide()), and the "grade" buttons appear (.fadeIn()). The problem is that the grade button that was in the place of the show answer button gets highlighted.
The "show answer" button:
Then I press the button:
And that's what appears:
Instead of what should appear:
Any ideas how to sort this problem out?
1) why do you have a "hover" state if developing for touch screens?
2) check in webinspector what is going on.
I want to disable long press of menu button in android. I override onkeylongpress because i want the keyboard not to display but unfortunately, menu button was totally disabled. I want to disable the long press of menu button only. How can i do this? Please help!
Please don't do that. In my device (Samsung Galaxy S2) you long pressing menu is like pressing search (the device doesn't have a dedicated search button). What I mean is that this is not a default for all android devices, if you change that you may break your app in some devices.
If you really want to do that though, you might want to watch for when the soft keyboard is shown/hidden. Here: How to check visibility of software keyboard in Android?
if you want to play with screen keyboard here are some options.........
android:windowSoftInputMode=["stateUnspecifie", "stateUnchanged", "stateHidden" "stateAlwaysHidden", "stateVisible", "stateAlwaysVisible", "adjustUnspecified", "adjustResize", "adjustPan"] ......
declare it in manifest's activity........