Is there a way in AS3 Air for Android to show the soft keyboard programatically?
I have a project where when the user clicks a button, it pops up a form for them to enter their email address. I have it set to programatically focus on the "TextInput", but unfortunately this doesn't automatically bring up the keyboard. So the user has to tap the "TextInput" field again to bring up the keyboard.
Is there a way to just call a "show keyboard" function? I tried adding:
email_txt.needsSoftKeyboard = true;
But that doesn't seem to help.
Thanks!
Figured it out. I just had to call requestSoftKeyboard(); on the TextInput component.
email_txt.requestSoftKeyboard();
Not sure why that was so hard to search for the answer.
Related
i've seen in some apps that it is possible to order Gboard to force open or focus into an EditText but when keyboard opens it is not the usual keyboard, it opens in a "search gifs" or "random GIF suggestion" mode. It is usually used in some apps to display an "Insert GIF" button next to the edittext. Here's an example:
Keyboard opens as usual when you click on the EditText. Please note the presence of the "GIF" button next to the camera button.
Keyboard opens in GIF search mode, just by tapping the "GIF" button mentioned earlier.
Any ideas on how to trigger this specific soft keyboard mode programmatically? I've been reading a lot of info but not able to find any similar question asked before.
Looks like this did not have anything to do with the keyboard itself. The GIF button just opens a recyclerview full of third party trending gifs withdrown via an API call (eg: giphy/tenor) which sits on top of the keyboard.
I am developing a IME keyboard which will have a automobile dial pad as the input handler in android. More clearly, the dial pad turns decide which alphabet to select.if the dial pad is pointed to "a" and then click the center button of the dial pad, it selects alphabet "a".
But my question is, is there a way i can have both hardware and software keyboards active consecutively?
My need is, My dial pad soft keyboard comes up and then i need to test it by right and left arrow of the hardware keyboard.
Thanks in advance
For future users- if you're implementing your own keyboard you can override boolean onEvaluateInputViewShown in InputMethodService. This function controls if the keyboard is shown, and the default implementation is to return false if a hardware keyboard exists. Change it to return true and it will work.
I don't know a way to do it from inside of an app.
for navigation part, i found the solution.
go to settings->input -> default-> disable the hardware physical keyboard.
then if any text edit is used, the soft keyboard comes up and then we can use the physical keyboard to navigate. (only navigation) .
I need my soft keyboard input to have both return button AND done button so that the user can write paragraphs in my EditText and click on Done to close the keyboard. Is this possible?
I've tried:
android:inputType="textMultiLine"
android:imeOptions="actionDone"
together but it didn't work.
PS: I'm testing on Samsung keyboard type.
No, I believe it's not possible prior to API level 11 (3.0).
The same issue cropped up here (discussed in the comments to the accepted answer):
Android Soft keyboard action button
From the final comment:
Looking at a few apps on my phone, it seems common to have the multiline box last, with a visible "Done" or "Send" button below it (e.g. Email app).
I wanted to know if there is a way in which we can assert if the soft keyboard is launched when we tap on edittext using robotium
See correct answer for the question How do I Detect if Software Keyboard is Visible on Android Device?
Also you could use setInputType(0) method to make sure that the keyboard will not be shown while you enter text with robotium.....
solo.getEditText(index).setInputType(0);
I have a webform that is integrated into a native app via a webview. But now when the user sets the focus on the first textbox of the form, I see a Go button on the soft keyboard. Instead, I'd like to have Next button, clicking on which would take me to the next input control. And the last input control alone should have Go button on keyboard. How do I achieve this? (Note: Please note that I want this on a web form. I've already found material on how to do this on a native form.)
Please go to take a look, is that what you are looking for?
How to change the Android softkey keyboard "Go" button to "Next"