title: Android, Background not keeping proportions while writing in TextEditor
body: <p>I've got a problem with a background while writing in <code>EditText</code> on my phone.</p>
  <p>My background is changing size, and not keeping right proportions.
  I would like it to be hidden behind keyboard.</p>
  <p>This is my full code:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
      
  &lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      android:background=&quot;@drawable/tlo4&quot;&gt;
  
      &lt;ScrollView
          android:layout_width=&quot;fill_parent&quot;
          android:layout_height=&quot;fill_parent&quot;&gt;
      
          &lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
              xmlns:tools=&quot;http://schemas.android.com/tools&quot;
              android:id=&quot;@+id/activity_add_advice&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;match_parent&quot;
              android:paddingBottom=&quot;@dimen/activity_vertical_margin&quot;
              android:paddingLeft=&quot;@dimen/activity_horizontal_margin&quot;
              android:paddingRight=&quot;@dimen/activity_horizontal_margin&quot;
              android:paddingTop=&quot;@dimen/activity_vertical_margin&quot;
              tools:context=&quot;com.jagoda.myapplication.AddAdvice&quot;&gt;
      
              &lt;TextView
                  android:id=&quot;@+id/tytul_add&quot;
                  android:layout_width=&quot;match_parent&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  style = &quot;@style/tekst&quot;
                  android:text=&quot;&quot;/&gt;
      
              &lt;TextView
                  android:id=&quot;@+id/tytul2_add&quot;
                  android:layout_width=&quot;match_parent&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:layout_below=&quot;@id/tytul_add&quot;
                  style = &quot;@style/tytulDuzy&quot;
                  android:text=&quot;&quot;/&gt;
  
                  &lt;EditText
                  android:id=&quot;@+id/new_ad&quot;
                  android:layout_width=&quot;match_parent&quot;
                  android:layout_height=&quot;300dp&quot;
                  android:layout_marginTop=&quot;20dp&quot;
                  android:layout_below=&quot;@id/tytul2_add&quot;
                  style=&quot;@style/tekst2&quot; /&gt;
  
              &lt;Button
                  style=&quot;@style/przycisk&quot;
                  android:text=&quot;Dodaj rozwiązanie&quot;
                  android:layout_width=&quot;340dp&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:layout_marginTop=&quot;10dp&quot;
                  android:layout_centerHorizontal=&quot;true&quot;
                  android:layout_below=&quot;@id/new_ad&quot;
                  android:onClick=&quot;to_home&quot;
                  android:id=&quot;@+id/button&quot;/&gt;
  
          &lt;/RelativeLayout&gt;
      &lt;/ScrollView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  <p><strong>Before writing in EditText:</strong></p>
  <p><img src="https://i.stack.imgur.com/7VGW7.png" alt="Before writing in EditText" /></p>
  <p><strong>While writing in EditText:</strong></p>
  <p><img src="https://i.stack.imgur.com/Mw1kD.png" alt="While writing in EditText" /></p>