title: How to make search menu item to a full view in the action bar using abs
body: <p>I have five action menu items in the action bar, which I'm using action bar sherlock library as follows :</p>
  
  <p>In <code>onCreateOptionsMenu()</code>, i used the following code :</p>
  
  <pre><code>  menu.add(0,1,0 "Settings")
        .setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);
  
    menu.add(0,2,0 "Favorites")
        .setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);
  
    menu.add(0,3,0 "List")
        .setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);
  
    menu.add(0,4,0 "Upload")
        .setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);
  
    menu.add(0,5,0 "Search")
       .setActionView(R.layout.search_layout)
       .setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS | MenuItem.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW);
  </code></pre>
  
  <p>Now my Problem is Search Edit text (which is in red color) appears like this:
  <img src="https://i.stack.imgur.com/nEMAN.png" alt="Search edit text appears like this"></p>
  
  <p>I want to make it to a full view in the action bar, like this :</p>
  
  <p><img src="https://i.stack.imgur.com/IjkZI.png" alt="Expected output"></p>