title: Workaround for adjustresize and adjustpan bug
body: <p>I'm looking for a workaround this issue. I've looked at:</p>
  
  <p><a href="https://stackoverflow.com/questions/4558810/adjustpan-not-preventing-keyboard-from-covering-edittext">adjustPan not preventing keyboard from covering EditText</a></p>
  
  <p><a href="https://stackoverflow.com/questions/7300497/adjust-layout-when-soft-keyboard-is-on">Adjust layout when soft keyboard is on</a></p>
  
  <p><a href="https://groups.google.com/forum/#!msg/android-developers/T193nVgXDSA/O6UZmDqskFYJ" rel="nofollow noreferrer">setSoftInputMode() and addFlags()</a></p>
  
  <p>and tried putting in:</p>
  
  <pre><code>    getWindow().addFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
      getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
      getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
  </code></pre>
  
  <p>Where I flip the flags for fullscreen when the keyboard comes up, but it doesn't seem to work.</p>
  
  <p>My layout is as follows:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:id="@+id/parent_layout"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"
  android:padding="0dp"
  android:paddingBottom="@dimen/activity_vertical_margin"
  android:paddingLeft="@dimen/activity_horizontal_margin"
  android:paddingRight="@dimen/activity_horizontal_margin"
  android:paddingTop="@dimen/activity_vertical_margin"&gt;
  
  &lt;RelativeLayout
      android:id="@+id/action_bar"
      android:layout_width="fill_parent"
      android:layout_height="55dp"
      android:layout_alignParentTop="true"
      android:layout_gravity="center"
      android:background="@drawable/gradient" &gt;
  
      &lt;ImageButton
          android:id="@+id/right_btn"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentRight="true"
          android:layout_centerVertical="true"
          android:layout_marginRight="10dp"/&gt;
  
      &lt;ImageButton
          android:id="@+id/left_btn"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_centerVertical="true"
          android:layout_marginLeft="10dp"/&gt;
  
      &lt;TextView
          android:id="@+id/title_text"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_centerVertical="true"
          android:layout_marginLeft="10dp"
          android:layout_toRightOf="@+id/left_btn"
          android:textIsSelectable="true"
          android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  &lt;/RelativeLayout&gt;
  
  &lt;RelativeLayout
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_below="@id/action_bar"
      android:padding="0dp" &gt;
  
      &lt;ListView
          android:id="@+id/main_list_view"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentTop="true"
          android:layout_above="@+id/post_bar"
          android:divider="@drawable/grey_divider"
          android:padding="15dp"
          android:scrollbars="none"
           &gt;
      &lt;/ListView&gt;
  
      &lt;RelativeLayout
          android:id="@+id/post_bar"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:layout_alignParentLeft="true"
          android:orientation="vertical"
          android:background="@drawable/status_gradient" &gt;
  
          &lt;ImageButton
              android:id="@+id/left_text_btn"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentLeft="true"
              android:layout_centerVertical="true"
              android:background="@null"
              android:onClick="toggleMenu"
              android:scaleType="centerCrop" /&gt;
  
          &lt;ImageButton
              android:id="@+id/right_text_btn"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentRight="true"
              android:layout_centerVertical="true"
              android:layout_gravity="center_vertical"
              android:background="@null"
              android:scaleType="centerCrop" /&gt;
  
          &lt;EditText
              android:id="@+id/post_text"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_toLeftOf="@id/right_btn_post"
              android:layout_toRightOf="@id/left_btn_post"
              android:inputType="text"
              android:textAppearance="?android:attr/textAppearanceLarge"
              android:textColor="#000000" /&gt;
      &lt;/RelativeLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>This layout also sits inside a horizontal scroll view with menus on either side of this main layout.</p>
  
  <p>How could I make the main page resize such that the edittext box is on top of the keyboard when it appears?</p>
  
  <p>Edit: If I take it out of the horizontalscrollview I'm using, it works, but since I'm using it to display my menus, I need a solution that works with them in there.
  <a href="https://github.com/gitgrimbo/android-sliding-menu-demo" rel="nofollow noreferrer">Link to HorizontalScrollView implementation I'm using</a></p>
  
  <p>-Thanks</p>