title: Android appcompat toolbar stretches when searchview gets focus
body: <p>I'm updating an app to use the new <code>Toolbar</code> instead of the regular <code>ActionBar</code>.
  In my app the user must be able to select a contact from their contact list. To do so, I've added a <code>SearchView</code> to the menu.
  The contacts are already in the list; the <code>SearchView</code> is used to filter the list using the <a href="https://developer.android.com/reference/android/widget/ArrayAdapter.html#getFilter()" rel="noreferrer" title="ArrayAdapter.getFilter()"><code>ArrayAdapter.getFilter()</code></a> method.</p>
  
  <p>It all worked fine using the <code>ActionBar</code>, but the <code>Toolbar</code>'s height gets stretched to just behind the keyboard. Using the XML inspection from Android Device Monitor I can see the <code>ListView</code> exists behind my keyboard.</p>
  
  <p>It almost seems as if the <code>SearchView</code> wants to display suggestions, but I have no such thing configured. Any idea what's going wrong?</p>
  
  <p>The images illustrate the problem. They show the normal, expanded and focused state of the <code>SearchView</code>.</p>
  
  <p>This is my XML menu:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"&gt;
      &lt;item android:id="@+id/action_forwarding_contact_search"
          app:showAsAction="always"
          android:title="@string/forwarding_contact_search"
          app:actionViewClass="android.support.v7.widget.SearchView"
          android:icon="@drawable/abc_ic_search_api_mtrl_alpha"/&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p><strong>Edit</strong>
  Giving the Toolbar a fixed height doesn't solve the problem, because it will make <code>SearchView</code> disappear when it has focus. Changing the gravity of either item seems to have no effect on the <code>SearchView</code>.</p>
  
  <p><img src="https://i.stack.imgur.com/vqfiy.jpg" alt="Normal state">
  <img src="https://i.stack.imgur.com/2SUq9.jpg" alt="Expanded state">
  <img src="https://i.stack.imgur.com/6sHQf.jpg" alt="Focused state"></p>