title: SearchView in ActionBar using support-v7-appcompat
body: <p>I've been trying very hard to get the SearchView widget to expand in the actionbar using the support-v7 libraries. I've managed to get it working without the support libraries when I target 4.0+ but I want to write the app for 2.3+ so I need to use the support libraries.
  I created a blank new activity with the following menu.xml:</p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:yourapp="http://schemas.android.com/apk/res-auto" &gt;
  
  &lt;item
      android:id="@+id/action_settings"
      android:orderInCategory="100"
      android:showAsAction="never"
      android:title="@string/action_settings"/&gt;
      
  &lt;item
      android:id="@+id/action_search"
      android:icon="@android:drawable/ic_menu_search"
      yourapp:showAsAction="always"
      yourapp:actionViewClass="android.support.v7.widget.SearchView"
      android:title="Search"/&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>This does not even show the search button, let alone expand it upon clicking. It simply add's the search into the menu instead of showing it in the actionbar.
  <img src="https://i.stack.imgur.com/i53X3.jpg" alt="using appcompat library (does not work)"></p>
  
  <p>Alternatively I tried the same without the appcompat library , I simply replaced the menu.xml with:</p>
  
  <pre><code>&lt;item
      android:id="@+id/action_search"
      android:icon="@android:drawable/ic_menu_search"
      android:showAsAction="always"
      android:actionViewClass="android.widget.SearchView"
      android:title="Search"/&gt;
  </code></pre>
  
  <p>And it works perfectly fine, and even expands to the search text input widget upon clicking.
  <img src="https://i.stack.imgur.com/zUa2J.jpg" alt="enter image description here"></p>
  
  <p>I want the searchview as available in the second picture while using the appcompat library, but for some reason it doesn't seem to be working. I'm using eclipse and I've included the Support libraries with resources exactly as specified in <a href="https://developer.android.com/tools/support-library/setup.html#libs-with-res" rel="nofollow noreferrer">Support Library Setup[developer.android.com]</a>.</p>
  
  <p>My manifest file has minsdk version as 7, targetsdk version as 18, and the build target is also 18.</p>
  
  <p>I suspect something is amiss in the support library setup, can someone please tell me what I might be doing wrong? Thanks!</p>