title: Views shrink when using keyboard with PercentageLayout
body: <p>i have 2 different XML files. One is  <em>signup.xml</em> the other <em>chat.xml</em>, both constructed with the PercentageLayout library.</p>
  
  <p>the <em>signup.xml</em> works great - opening keyboard doesnt change any view.
  However, in <em>chat.xml</em> whenever i pop the keyboard the view shrinks or out of screen, and i dont know why since i constructed them both nearly in the same manner, only i suspect that because i use <code>ScrollView</code> this happens.</p>
  
  <p>The problematic layout, <code>chat.xml</code> :</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.percent.PercentRelativeLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  
  &lt;!-- top --&gt;
  &lt;LinearLayout
      android:id="@+id/top"
      android:layout_width="0dp"
      android:layout_height="0dp"
      app:layout_widthPercent="100%"
      app:layout_heightPercent="8%"
      android:background="#075607"
      android:orientation="vertical"&gt;
  
  &lt;TextView
      android:layout_width="wrap_content"
      android:layout_height="match_parent"
      android:textColor="#acddf4"
      android:textSize="20sp"
      android:text="jfioewjfoiewjfoi"
      android:gravity="center"
      android:layout_gravity="center_horizontal|center_vertical" /&gt;
  
  &lt;/LinearLayout&gt;
  &lt;!-- Mid --&gt;
  &lt;LinearLayout
      android:id="@+id/mid"
      android:layout_below="@+id/top"
      android:layout_width="0dp"
      android:layout_height="0dp"
      app:layout_widthPercent="100%"
      app:layout_heightPercent="84%"
      android:background="#b1b7b3"
      android:orientation="vertical"&gt;
  
      &lt;ScrollView
          android:id="@+id/scroller"
          android:layout_width="match_parent"
          android:layout_height="fill_parent"
          android:background="@drawable/chat_bg" &gt;
  
          &lt;LinearLayout
              android:id="@+id/chatWindowContainer"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:orientation="vertical" &gt;
          &lt;/LinearLayout&gt;
      &lt;/ScrollView&gt;
  
  
      &lt;/LinearLayout&gt;
  &lt;!-- Bottom --&gt;
  &lt;LinearLayout
      android:id="@+id/bottom"
      android:layout_below="@+id/mid"
      android:layout_width="0dp"
      android:layout_height="0dp"
      app:layout_widthPercent="100%"
      app:layout_heightPercent="8%"
      android:background="#000000"
      android:orientation="horizontal"&gt;
  
      &lt;EditText
          android:id="@+id/etMessage"
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          android:layout_weight="1"
          android:ems="10"
          android:paddingLeft="5dp"
          android:background="@drawable/text"
          android:imeOptions="actionNone"
          android:inputType="textMultiLine"
          android:singleLine="false" /&gt;
  
      &lt;Button
          android:id="@+id/bSendMessage"
          android:layout_width="40dp"
          android:layout_height="match_parent"
          android:background="@drawable/ic_send"
          android:layout_gravity="right" /&gt;
  
  
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>And the working layout, <code>signup.xml</code> : 
          
          </p>
  
  <pre><code>&lt;LinearLayout
      android:id="@+id/title"
      android:layout_height="0dp"
      android:layout_width="0dp"
      app:layout_heightPercent="15%"
      app:layout_widthPercent="100%"&gt;
  
      &lt;ImageView
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:src="@drawable/signup"/&gt;
  &lt;/LinearLayout&gt;
  
  &lt;LinearLayout
      android:id="@+id/mid"
      android:orientation="vertical"
      android:layout_height="0dp"
      android:layout_width="0dp"
      android:layout_below="@+id/title"
      app:layout_heightPercent="35%"
      app:layout_widthPercent="100%"
      android:baselineAligned="true"&gt;
      &lt;!-- Username --&gt;
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="30dp"
          android:orientation="horizontal"
          app:layout_heightPercent="20%"
          app:layout_widthPercent="20%"&gt;
  
  
          &lt;ImageView
              android:layout_width="35dp"
              android:layout_height="wrap_content"
              android:src="@drawable/person" /&gt;
          &lt;EditText
              android:id="@+id/etUsername_signup"
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:ems="10"
              android:inputType="text"
              android:text="test"
              android:textColor="#000000"
              android:paddingLeft="5dp"
              android:layout_weight="0.1"
              android:background="@drawable/text"&gt;
              &lt;requestFocus /&gt;
          &lt;/EditText&gt;
  
      &lt;/LinearLayout&gt;
      &lt;!-- Email --&gt;
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="30dp"
          android:orientation="horizontal"
          app:layout_heightPercent="20%"
          app:layout_widthPercent="20%"&gt;
  
  
          &lt;ImageView
              android:layout_width="35dp"
              android:layout_height="wrap_content"
              android:src="@drawable/email" /&gt;
          &lt;EditText
              android:id="@+id/etEmail_signup"
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:ems="10"
              android:inputType="textEmailAddress"
              android:text="email@address.com"
              android:textColor="#000000"
              android:paddingLeft="5dp"
              android:layout_weight="0.1"
              android:background="@drawable/text"/&gt;
  
      &lt;/LinearLayout&gt;
      &lt;!-- Password1 --&gt;
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="30dp"
          android:orientation="horizontal"
          app:layout_heightPercent="20%"
          app:layout_widthPercent="20%"&gt;
  
  
          &lt;ImageView
              android:layout_width="35dp"
              android:layout_height="wrap_content"
              android:src="@drawable/password" /&gt;
          &lt;EditText
              android:id="@+id/etPassword1_signup"
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:ems="10"
              android:inputType="textPassword"
              android:text="pass"
              android:textColor="#000000"
              android:paddingLeft="5dp"
              android:layout_weight="0.1"
              android:background="@drawable/text"/&gt;
  
      &lt;/LinearLayout&gt;
      &lt;!-- Password2 --&gt;
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="30dp"
          android:orientation="horizontal"
          app:layout_heightPercent="20%"
          app:layout_widthPercent="20%"&gt;
  
  
          &lt;ImageView
              android:layout_width="35dp"
              android:layout_height="wrap_content"
              android:src="@drawable/password" /&gt;
          &lt;EditText
              android:id="@+id/etPassword2_signup"
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:ems="10"
              android:inputType="textPassword"
              android:text="pass"
              android:textColor="#000000"
              android:paddingLeft="5dp"
              android:layout_weight="0.1"
              android:background="@drawable/text"/&gt;
  
      &lt;/LinearLayout&gt;
      &lt;!-- Spinner and RadioGroup--&gt;
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
          android:gravity="center"&gt;
          &lt;Spinner
              android:layout_width="100dp"
              android:layout_height="match_parent"
              android:id="@+id/spinner"
              android:layout_gravity="center" /&gt;
          &lt;RadioGroup
              android:id="@+id/rgRadius"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"&gt;
  
              &lt;RadioButton
                  android:id="@+id/radio0"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:checked="true"
                  android:text="Kilometer" /&gt;
  
              &lt;RadioButton
                  android:id="@+id/radio1"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="Mile" /&gt;
          &lt;/RadioGroup&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  &lt;!-- Image --&gt;
  &lt;LinearLayout
      android:id="@+id/image"
      android:orientation="vertical"
      android:layout_height="0dp"
      android:layout_width="0dp"
      android:layout_below="@+id/mid"
      app:layout_heightPercent="40%"
      app:layout_widthPercent="100%"
      android:baselineAligned="true"&gt;
  
      &lt;ImageView
          android:id="@+id/imgProfile"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:src="@drawable/faceless" /&gt;
  
  &lt;/LinearLayout&gt;
  
  &lt;!-- Button --&gt;
  &lt;LinearLayout
      android:layout_width="0dp"
      android:layout_height="0dp"
      app:layout_heightPercent="10%"
      app:layout_widthPercent="100%"
      android:orientation="vertical"
      android:layout_below="@id/image"&gt;
  
  
      &lt;Button
          android:layout_width="150dp"
          android:layout_height="wrap_content"
          android:id="@+id/bSignup"
          android:layout_gravity="center|bottom"
          android:background="@drawable/button_send" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>