title: Soft Keyboard Hides Toolbar
body: <p>I have used Toolbar in my layout. Whenever I open the activity, and focus on the edit-text, it hides the toolbar. Please see below pictures</p>
  
  <p><a href="https://i.stack.imgur.com/hYidT.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/hYidT.jpg" alt="Before Soft Keyboard opens up"></a></p>
  
  <p><a href="https://i.stack.imgur.com/dPvqv.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/dPvqv.jpg" alt="After Soft Keyboard opens up"></a></p>
  
  <p>Below is my layout file:</p>
  
  <pre><code>&lt;LinearLayout 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:orientation="vertical"
  tools:context="com.example.sampleactivity"&gt;
  
  &lt;android.support.v7.widget.Toolbar
      android:id="@+id/toolbar"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:elevation="4dp"
      android:background="@color/color_theme"
      android:minHeight="?attr/actionBarSize"&gt;
  
      &lt;TextView
          android:id="@+id/toolbar_title"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="left"
          android:text="App"
          android:textColor="@color/white"
          android:textSize="24sp" /&gt;
  
      &lt;Button
          android:id="@+id/past_locations"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="right"
          android:text="Next"
          android:textColor="@color/white"
          style="?android:attr/borderlessButtonStyle"/&gt;
  
  &lt;/android.support.v7.widget.Toolbar&gt;
  
  &lt;LinearLayout
      android:id="@+id/mapLayout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_weight="1"
      android:orientation="vertical"&gt;
  
      &lt;RelativeLayout
          android:id="@+id/mapView"
          android:layout_width="match_parent"
          android:layout_height="fill_parent"
          android:layout_weight="1"&gt;
  
          &lt;fragment
              android:id="@+id/map"
              android:name="com.google.android.gms.maps.SupportMapFragment"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              /&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent" /&gt;
      &lt;/RelativeLayout&gt;
  
  
      &lt;EditText
          android:id="@+id/label"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:hint="Title"
          android:layout_marginLeft="16dp"
          android:layout_marginRight="16dp"
          android:singleLine="true"
          /&gt;
  
      &lt;AutoCompleteTextView
          android:id="@+id/tags"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:hint="Enter"
          android:layout_marginLeft="16dp"
          android:layout_marginRight="16dp"
          android:maxLines="3"
          /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>Using <code>android:windowSoftInputMode="adjustPan"</code> didn't help either. </p>
  
  <p>How can I avoid hiding my toolbar when keyboard opens up.</p>