title: How can I correctly resize the layout when the keyboard appears?
body: <p>In Android I have reproduced the following layout : </p>
  
  <p><img src="https://i.stack.imgur.com/vdl6U.jpg" alt="enter image description here"></p>
  
  <p>In this way : </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="#94F734"
      android:orientation="vertical"&gt;
  
      &lt;LinearLayout  
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginTop="48dp"
          android:layout_marginLeft="48dp"
          android:padding="0dp"&gt;
  
          &lt;include layout="@layout/header"/&gt;
  
      &lt;/LinearLayout&gt;
  
      &lt;RelativeLayout 
          android:id="@+id/body"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_marginLeft="48dp"
          android:layout_marginRight="48dp"
          android:layout_marginBottom="48dp"
          android:paddingTop="96dp"
          android:background="#463779B3"
          android:visibility="visible"&gt;
  
          &lt;TextView
              android:id="@+id/name"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:textSize="28dp"
              android:text="title"
              android:layout_above="@+id/code"
              android:layout_centerHorizontal="true"
              android:layout_marginBottom="48dp"
              android:layout_marginLeft="8dp"
              android:layout_marginRight="8dp"
              android:textColor="#000000"/&gt;
  
          &lt;EditText
              android:id="@+id/code"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:ems="10"
              android:hint="Insert here "
              android:background="@drawable/back_item_edit"
              android:textColor="#FFFFFF"
              android:layout_centerVertical="true"
              android:layout_marginLeft="36dp"
              android:layout_marginRight="36dp"&gt;
              &lt;requestFocus /&gt;
  
          &lt;/EditText&gt;
  
          &lt;Button
              android:id="@+id/prova"
              android:layout_below="@id/code"
              style="@style/initialButton"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_marginTop="26dp"
              android:text="Connect"
              android:textColor="#000000"
              android:layout_alignLeft="@id/code"
              android:layout_alignRight="@id/code"
              android:layout_marginLeft="8dp"
              android:layout_marginRight="8dp"
              android:visibility="visible"/&gt;
  
      &lt;/RelativeLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>But when I click on "insert here" one problem appears : the layout is not correctly resized and doesn't fit in the little screen. </p>
  
  <p>I thought to use a scrollview, but I don't know how to use it. </p>
  
  <p>When the keyboard appears I would to show :</p>
  
  <ul>
  <li>header (if there is room)</li>
  <li>title (if there is room)</li>
  <li>insert here</li>
  <li>connect</li>
  <li>green part of layout (if there is room)</li>
  <li>keyboard</li>
  </ul>
  
  <p>Is there a way to resolve my problem ? </p>