title: Android action bar menu item with actionLayout not working properly
body: <p>Hi I am developing an Android application. In my application I am using Sherlock action. I've defined few menu items in action-bar like in following manner </p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item
          android:id="@+id/card_menu"
          android:actionLayout="@layout/action_button"
          android:showAsAction="always"
          android:title="cards"&gt;
          &lt;menu&gt;
              &lt;item
                  android:id="@+id/C1"
                  android:title="C1"/&gt;
              &lt;item
                  android:id="@+id/C2"
                  android:title="c2"/&gt;
              &lt;item
                  android:id="@+id/C3"
                  android:title="C3"/&gt;
          &lt;/menu&gt;
      &lt;/item&gt;
      &lt;item
          android:id="@+id/notification"
          android:actionLayout="@layout/notification_icon"
          android:icon="@drawable/notification"
          android:showAsAction="always"
          android:title="Notifications"/&gt;
  
      &lt;item
          android:id="@+id/filter"
          android:icon="@drawable/filter"
          android:showAsAction="always"
          android:title="Filter"/&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>and My action_button looks like :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"&gt;
  
      &lt;ImageView
          android:id="@+id/menu_img"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:src="@drawable/spinner_ab_focused_maroon"/&gt;
      &lt;TextView
          android:id="@+id/menu_text"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_toRightOf="@+id/imageView0"
          android:text="C1"/&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Now everything is displayed but my problem is that when I click on <code>card_menu item</code> where I define sub menus and also define action layout. It's not showing those sub menus. My other menu items are working properly. Only when I define action layout for my item which contains sub menus that I am not able to display sub-menu. If I remove action layout it works fine.</p>
  
  <p>I know if we define action layout for item then we have to manually handle click listener.
  I did that in following manner </p>
  
  <pre><code>final MenuItem item = menu.findItem(R.id.card_menu);
          item.getActionView().setOnClickListener(new OnClickListener() {
              @Override
              public void onClick(View v) {
                  onOptionsItemSelected(item);
                  Toast.makeText(getActivity(), "click on menu", Toast.LENGTH_SHORT).show();
              }
          });
  </code></pre>
  
  <p>I am able to handle to click event for that item but not able to show drop-down sub menu items.</p>
  
  <p>How do I solve this problem?</p>