title: Android keyboard blocking app components
body: <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:paddingBottom="@dimen/activity_vertical_margin"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      tools:context="com.example.myapp.MainActivity" &gt;
  
      &lt;TextView
          android:id="@+id/txtWelcome"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentTop="true"
          android:layout_centerHorizontal="true"
          android:layout_marginTop="151dp"
          android:padding="5dp"
          android:text="@string/Welcome"
          android:textSize="30sp" /&gt;
  
      &lt;TextView
          android:id="@+id/SignUp"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_below="@+id/txtWelcome"
          android:layout_centerHorizontal="true"
          android:layout_marginTop="24dp"
          android:text="@string/SignUp" /&gt;
  
      &lt;Button
          android:id="@+id/btnContinue"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignLeft="@+id/etUsername"
          android:layout_alignParentBottom="true"
          android:layout_marginBottom="14dp"
          android:text="@string/Continue" /&gt;
  
      &lt;EditText
          android:id="@+id/etUsername"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_above="@+id/btnContinue"
          android:layout_alignParentLeft="true"
          android:layout_marginBottom="19dp"
          android:layout_marginLeft="20dp"
          android:ems="10"
          android:hint="Enter your email" &gt;
  
          &lt;requestFocus /&gt;
      &lt;/EditText&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>When I click on the edit text to give some input, the keyboard opens up and blocks the button i.e   when the keyboard is displayed on the screen I cant see the button below the EditText.</p>
  
  <p>I tried searching online but I found was to use these: 
      android:windowSoftInputMode="adjustPan" or 
      android:windowSoftInputMode="adjustResize" but none served the purpose.</p>
  
  <p>I am learning Android on my own so any help will be appreciated. 
  Thanks in advance.</p>