I am using WebView to present UI. Is there any way that I can trigger custom soft keyboard when input text form field is selected?
I just encounter a similar problem with the android WebView. When I select, in touch mode, a text input field, it does not pop-up the virtual keyboard whereas with the trackball it works fine.
I just found there: http://groups.google.com/group/android-developers/browse_thread/thread/e52109afda599301/b4cbc16e4e9e8e0d (last message from alien9) that calling
myWebview.requestFocusFromTouch();
solve the problem.
take a look at HTML5 - if you change your
<input type="text" ...
to for instance a
<input type="number" ...
you'll get a specialized soft keyboard for numbers.
Here is some more documentation: http://diveintohtml5.ep.io/forms.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With