【问题标题】:How can we block Android default keyboard for a Particular input Box an webview Page我们如何阻止特定输入框和 webview 页面的 Android 默认键盘
【发布时间】:2015-08-01 08:11:57
【问题描述】:

我有一个包含 HTML5javascript 的 Webview 页面。对于特定的输入文本框,我不希望出现 Android 默认键盘。 如何实现?

我知道使用webview 对这种应用程序不好,但我必须为我的应用程序使用,请帮助。

【问题讨论】:

    标签: javascript android html uiwebview keyboard


    【解决方案1】:

    如果你的意思是你想要一个特定的输入,比如数字或电子邮件键盘,那么这个页面可能会有所帮助:

    http://blog.teamtreehouse.com/using-html5-input-types-to-enhance-the-mobile-browsing-experience

    可能性:

    <input type="email" name="email">
    <input type="url" name="url">
    <input type="tel" name="tel">
    <input type="number" name="number">
    <input type="date" name="date">
    <input type="time" name="time">
    <input type="datetime" name="datetime">
    <input type="month" name="month">
    

    如果你想完全隐藏它,你可以看看这个帖子:

    HTML Mobile -forcing the soft keyboard to hide

    【讨论】:

      猜你喜欢
      • 2019-04-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-18
      • 1970-01-01
      • 2018-04-19
      • 2021-12-23
      • 1970-01-01
      相关资源
      最近更新 更多