title: Android - How to adjust a popup when the soft keyboard shows up
body: <p><img src="https://i.stack.imgur.com/5Husa.png" alt="without soft keyboard"></p>
  
  <p><img src="https://i.stack.imgur.com/or7Dv.png" alt="when soft keyboard shows up"></p>
  
  <p>I want to replicate this effect in my layout. But in my layout when the keyboard show up, my pop-up is not adjusted. 
  The device adjust me the main activity below and not the popup. </p>
  
  <p>this is my popup layout.xml :</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical" android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="@drawable/sfondo_semi_trasparente_scuro"&gt;
  
  
  
  
  &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_centerHorizontal="true"
      android:layout_centerVertical="true"
      android:background="@color/white"
      android:orientation="vertical"&gt;
  
  
  
  
  
      &lt;EditText
          android:id="@+id/textNomeGiocatoreNewTeam"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:inputType="textPersonName"
          android:hint="Nome giocatore"/&gt;
  
  
      &lt;EditText
          android:id="@+id/textNumeroMagliaGiocatoreNewTeam"
          android:inputType="number"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:hint="Numero Maglia"/&gt;
  
      &lt;Button
          android:id="@+id/buttonConfirmAddNewPlayer"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Aggiungi giocatore"
          android:layout_gravity="center"/&gt;
  
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>
  Can someone help me?</p>