title: if I set linearlayout weight when keyboard pops it resizes its continent
body: <p>I folowed this <a href="https://stackoverflow.com/questions/24459352/how-can-i-add-the-new-floating-action-button-between-two-widgets-layouts">example</a> and manage to put fab button in right place</p>
  
  <p><a href="https://i.stack.imgur.com/qXPZ1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qXPZ1.png" alt="enter image description here"></a></p>
  
  <p>but when I press on edit text keyboard pops up and it messes up layout weight</p>
  
  <p><a href="https://i.stack.imgur.com/fRngQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fRngQ.png" alt="enter image description here"></a></p>
  
  <p>How can I make that ImageView would be static and when keyboard opens it would stay on same size?</p>
  
  <p><strong>XML:</strong></p>
  
  <pre><code>&lt;android.support.design.widget.CoordinatorLayout    
  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"
  android:background="@color/white"
  android:focusableInTouchMode="true"&gt;
  
  &lt;LinearLayout
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"&gt;
  
  &lt;LinearLayout
  android:id="@+id/ViewA"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:layout_weight="0.6"
  android:background="@color/colorPrimary"
  android:orientation="horizontal"&gt;
  
  &lt;ImageView
      android:id="@+id/imgview"
      android:layout_width="fill_parent"
      android:layout_height="match_parent"
      android:background="@color/light_blue"
      android:scaleType="centerCrop"
      android:src="@android:drawable/ic_menu_camera"
      android:layout_gravity="top|center_horizontal"
      /&gt;
  
  &lt;/LinearLayout&gt;
  
  &lt;LinearLayout
      android:id="@+id/ViewB"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_weight="0.3"
      android:orientation="horizontal"&gt;
  &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  
  &lt;android.support.design.widget.FloatingActionButton
      android:id="@+id/add_image"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_margin="@dimen/fab_margin"
      app:layout_anchor="@id/ViewA"
      android:clickable="true"
      app:layout_anchorGravity="bottom|right"
      app:elevation="5dp"
      app:pressedTranslationZ="0dp"
      android:src="@android:drawable/ic_menu_camera"/&gt;
  
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>