How to use Phonegap SoftKeyboard Plugin for Android?

前端 未结 5 1528
被撕碎了的回忆
被撕碎了的回忆 2020-12-05 00:31

I am developing an Android application using Phonegap. I need to make the softkeyboard appear programatically. I am using the SoftKeyboard plugin which is found here. Can an

5条回答
  •  天涯浪人
    2020-12-05 01:14

    Cordova 3.0 + JQM 1.3.2: Changing "fullscreen" to "false" in config.xml fixed the "adjustPan" and prevented my inputs from being covered when the keyboard displayed. However, blur() would not close the keyboard and this plugin worked wonderfully.

    For the almost latest version of phonegap:

    • Add SoftKeyBoard.java to your app package in src
    • Add softkeyboard.js to assets/www
    • Update config.xml with:
    • Call your plugin: plugins.SoftKeyBoard.hide(function() {//success }, function() {//fail });

提交回复
热议问题