title: Android: I can't make collapseActionView
body: <p>I want to make something like that:</p>
  
  <p><img src="https://i.stack.imgur.com/xdCJN.jpg" alt="gmail menu collapsible"></p>
  
  <p>I try to make the popup menu whit the collapseview, y the action bar. but i try all the thing that i found on internet and no solution found. i didnt need suppoart android api less than 15. </p>
  
  <p>this the main.xml</p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android" &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_dialog_email"
            android:title="@string/hello_world"
            android:showAsAction="always|collapseActionView"
            /&gt;
      &lt;item android:id="@+id/action_compose"
            android:icon="@android:drawable/btn_star"
            android:title="@string/hello_world" 
            android:showAsAction="never"
            /&gt;
      &lt;item android:id="@+id/action_compose2"
            android:icon="@android:drawable/btn_star"
            android:title="@string/hello_world" 
            android:showAsAction="never"
            /&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>This my activity:</p>
  
  <pre><code>public class MainActivity extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          ActionBar a = getActionBar();
          a.setTitle("Mariano");
  
  
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu items for use in the action bar
          MenuInflater inflater = getMenuInflater();
          inflater.inflate(R.menu.main, menu);
          MenuItem menuItem = menu.findItem(R.id.action_search);
  
          MenuItemCompat.setOnActionExpandListener(menuItem, new OnActionExpandListener() {
  
              @Override
              public boolean onMenuItemActionExpand(MenuItem arg0) {
                  // TODO Auto-generated method stub
                  return false;
              }
  
              @Override
              public boolean onMenuItemActionCollapse(MenuItem arg0) {
                  // TODO Auto-generated method stub
                  return false;
              }
          });
  
          return super.onCreateOptionsMenu(menu);
      }
      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          return false;
      }
  }
  </code></pre>