Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-4404

android:windowSoftInputMode has no effect in full screen mode, and "adjustPan" does not work in non-full screen mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Implemented
    • 2.9.0
    • None
    • cordova-android
    • None
      • Mac OS 10.7.5
      • Android 4.1.2 and 4.2.2 emulator using Intel's x86 images

    Description

      I recently posted a description of this issue to the phonegap group at https://groups.google.com/d/topic/phonegap/J-h0lt68x0g/discussion.

      I am testing out PhoneGap 2.9.0 in the Android emulator (using Intel's x86 images), and I am seeing the issue that the android:windowSoftInputMode setting is not having an effect. By default, the setting is set to "adjustPan" in the generated project, but when I actually focus a text <input>, the soft keyboard appears on top of the app, but does not pan the main window, and the <input> is usually hidden beneath the keyboard as a result.

      Steps to reproduce:

      1. Create a new PhoneGap 2.9.0 project using the cordova create utility. Add the 'android' platform.
      2. Open the project in Eclipse.
      3. Edit index.html to add <br><br><br><br><br><br><br><input placeholder="Text box"> below the <h1>Apache Cordova</h1> heading.
      4. Run the app in Android 4.1.2 or 4.2.2 emulator.
      5. Tap the <input> and notice that the soft keyboard is placed over the app and the <input> is hidden beneath.
      6. Try changing the android:windowSoftInputMode setting in AndroidManifest.xml to "adjustResize", reload the app, and notice that the app is not resized when the <input> receives keyboard focus.

      I am seeing this problem in Android 4.1.2 and 4.2.2 emulator. In Android 4.0.3 emulator, the app pans as expected.

      The strange thing is that if I load the www/ files in the Browser and focus the <input>, then the window is resized to fit the soft keyboard like normal. This seems to imply that android:windowSoftInputMode works fine in the emulator, but there is some issue in PhoneGap that is preventing it from working.

      Attachments

        Issue Links

          Activity

            People

              agrieve Andrew Grieve
              dtrebbien Daniel Trebbien
              Votes:
              6 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: