数字键盘未显示在 Webview 文本框焦点上 Android

Numeric Keyboard not showing on Webview TextBox focus Android

目前我正在我的应用程序中使用 WebView 来加载 WebPageWebView 有一个 TextBox 只允许输入数值。

我已经完成 JavaScript 验证并限制用户输入数字以外的任何其他字符。

它在 WebPage 中工作,但是当 TextBox 聚焦在 Android WebView 中时,它不显示数字键盘。

而不是显示简单键盘

如何显示数字键盘?

您需要设置适当的输入类型属性: http://www.w3schools.com/tags/att_input_type.asp

最后我通过指定

解决了它
<input type="number" /> 

而不是

<input type="text" /> 

网络形式。