Android: how to add a custom soft keyboard when a form field is selected in WebView

I use WebView to represent the user interface. Is there a way I can launch a custom soft keyboard when a text box input field is selected?

+6
android webview keyboard android-webview uiwebview
Jun 23 '10 at 0:40
source share
2 answers

I just run into a similar problem with an Android browser. When I select an input text field in touch mode, it does not pop up the virtual keyboard, while the trackball works fine.

I just found there: http://groups.google.com/group/android-developers/browse_thread/thread/e52109afda599301/b4cbc16e4e9e8e0d (last post from alien9) calling

myWebview.requestFocusFromTouch(); 

solve the problem of.

+1
Oct 18 2018-10-18
source share

take a look at HTML5 - if you changed your

 <input type="text" ... 

eg,

 <input type="number" ... 

You will get a specialized soft keyboard for numbers.

Here are some more documents: http://diveintohtml5.ep.io/forms.html

+1
Feb 08 2018-11-21T00:
source share



All Articles