title: Phonegap Android Application not adjusting pan on keyboardshow
body: <p>I'm developing a phonegap application with version 2.9.0;</p>
  
  <p>The layout was fully tested in desktop browser using RWD Bookmarklet(<a href="http://responsive.victorcoulon.fr/" rel="nofollow noreferrer">http://responsive.victorcoulon.fr/</a>) and worked fine. However, when tested in mobile devices or the emulator, the layout broke. After a little bit testing, I found out that the problem was the status bar height. Changed the application to fullscreen, problem solved.</p>
  
  <p>But now, when i focus on an input field, the screen is not being adjusted, so, the keyboard covers the input field!</p>
  
  <p>After looking all the questions and related problems, I found <a href="https://stackoverflow.com/questions/15749423/keyboard-does-not-pan-on-android-application-using-phonegap">this</a> one, that makes sense to me, but i wanted to know if there is a way to make the adjust pan work with fullscreen, so i don't need to adjust all my components height, calculate different status bar heights based on devices, etc.</p>
  
  <p><strong>Codes</strong></p>
  
  <p><em>form.html</em></p>
  
  <pre><code>&lt;form id="login-form"&gt;
      &lt;div class="form-group"&gt;
         &lt;input type="text" name="login" class="form-control" id="login"
                          placeholder="xxxxxxx@example.com"&gt;
      &lt;/div&gt;
      &lt;div class="form-group"&gt;
        &lt;input type="password" name="pass" class="form-control"
                          id="password" placeholder="*******"&gt;
      &lt;/div&gt;
      &lt;a class="pull-right login-btn" id="btn-login" href="#"&gt;&lt;span
                      class="image-replacement"&gt;&lt;/span&gt;&lt;/a&gt; 
      &lt;a class="pull-right login-btn" id="btn-cadastro" href="#"&gt;&lt;span class="image-replacement"&gt;&lt;/span&gt;&lt;/a&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><em>Android Manifest.xml</em></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" android:windowSoftInputMode="adjustPan"
        package="com.com.app" android:versionName="1.0" android:versionCode="1" android:hardwareAccelerated="true"&gt;
      &lt;supports-screens
          android:largeScreens="true"
          android:normalScreens="true"
          android:smallScreens="true"
          android:xlargeScreens="true"
          android:resizeable="true"
          android:anyDensity="true"
          /&gt;
  &lt;uses-permission android:name="android.permission.CAMERA" /&gt;
  &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" /&gt;
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.RECEIVE_SMS" /&gt;
  &lt;uses-permission android:name="android.permission.RECORD_AUDIO" /&gt;
  &lt;uses-permission android:name="android.permission.RECORD_VIDEO"/&gt;
  &lt;uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /&gt;
  &lt;uses-permission android:name="android.permission.READ_CONTACTS" /&gt;
  &lt;uses-permission android:name="android.permission.WRITE_CONTACTS" /&gt;   
  &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;   
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
  &lt;uses-permission android:name="android.permission.BROADCAST_STICKY" /&gt;
  
  
  &lt;application android:icon="@drawable/icon" android:label="@string/app_name"
      android:hardwareAccelerated="true"
      android:debuggable="true"&gt;
      &lt;activity android:name="App" android:label="@string/app_name"
              android:theme="@android:style/Theme.Black.NoTitleBar"
              android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
              android:windowSoftInputMode="stateVisible|adjustPan"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  
  &lt;uses-sdk android:minSdkVersion="7" android:targetSdkVersion="17"/&gt;
  &lt;/manifest&gt; 
  </code></pre>
  
  <p><em>App.java</em></p>
  
  <pre><code>package com.com.app;
  
  import org.apache.cordova.Config;
  import org.apache.cordova.DroidGap;
  
  import android.os.Bundle;
  import android.view.WindowManager;
  
  public class BDH extends DroidGap
  {
      @Override
      public void onCreate(Bundle savedInstanceState)
      {
          super.onCreate(savedInstanceState);
          // Set by &lt;content src="index.html" /&gt; in config.xml
  
          getWindow().setFlags(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN, WindowManager.LayoutParams.SOFT_INPUT_MASK_ADJUST);
  
          getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
          getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
  
          super.loadUrl(Config.getStartUrl());
          //super.loadUrl("file:///android_asset/www/index.html")
      }
  }
  </code></pre>