title: Android edittext auto grow with text and pushing things down
body: <p>Yes, this is yet another edittext grow question on SO. And yes I've already gone through all those edittext grow questions. But this ones a bit specific. </p>
  
  <p>UI: </p>
  
  <p><img src="https://i.stack.imgur.com/6zEc3.png" alt="enter image description here"></p>
  
  <p>A simple android layout with edittext and button below it. When text is less, the edittext view is still covering whole screen leaving space for button below.</p>
  
  <p>Once user starts entering text, edittext grows vertically to accommodate text. At the same time, the button should also kept pushing downwards to let edittext grow.</p>
  
  <p>User can vertically scroll through screen to view full text. </p>
  
  <p>UI after entering significant text:</p>
  
  <p><img src="https://i.stack.imgur.com/QTFb0.png" alt="enter image description here"></p>
  
  <p>Here's the layout with edittext and button below:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="@color/background"
      android:clipToPadding="false"
      android:fadingEdge="none"
      android:fillViewport="true"
      android:padding="13dp"
      android:scrollbarStyle="outsideOverlay" &gt;
  
      &lt;RelativeLayout
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:layout_weight="1"&gt;
  
          &lt;!-- some fixed width image  --&gt;
          &lt;ImageView
              android:id="@+id/someimage"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginTop="4dp"
              android:src="@drawable/page_white_text" /&gt;
  
          &lt;EditText
              android:id="@+id/some"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_below="@id/someimage"
              android:background="@null"
              android:gravity="top"
              android:minLines="10"
              android:minHeight="50dp"
              android:textColor="#222222"
              android:textSize="15dp"
              android:typeface="serif" &gt;
              &lt;requestFocus /&gt;
          &lt;/EditText&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_alignParentBottom="true"
              android:baselineAligned="true"
              android:layout_marginTop="5dp"
              android:padding="10dp"
              android:orientation="vertical" &gt;
  
              &lt;Button
                  android:id="@+id/button1"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="Button" /&gt;
  
          &lt;/LinearLayout&gt;
      &lt;/RelativeLayout&gt;
  
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>This works more or less. But when I enter to much text, instead of pushing button downwards. It goes behind it like:</p>
  
  <p><img src="https://i.stack.imgur.com/iQ92f.png" alt="enter image description here"></p>
  
  <p>Any help here is much appreciated. Thanks :)</p>