title: MenuItem.setActionView() doesn't work
body: <p>I'm trying to make actionbar menu with custom item view programatically.</p>
  
  <p>My <code>menu.xml</code> file:</p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item
          android:id="@+id/action_category"
          android:icon="@drawable/ic_category"
          app:showAsAction="always|collapseActionView"
          android:title="@string/category"&gt;
          &lt;menu&gt;
          &lt;/menu&gt;
      &lt;/item&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>Creation of menu:</p>
  
  <pre><code>@Override
  public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
      inflater.inflate(R.menu.menu, menu);
      MenuItem category = menu.findItem(R.id.action_category);
      Menu categoriesMenu = category.getSubMenu();
      Category[] items = Category.values();
  
      LayoutInflater baseInflater = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  
      for (int i = 0; i &lt; items.length; ++i){
          Category c = items[i];
          MenuItem item = categoriesMenu.add(i, c.id, 0, c.resourceText);
  
          View myCustomView = baseInflater.inflate(R.layout.category_list_item, null);
          ((ImageView)myCustomView.findViewById(R.id.icon)).setImageResource(c.resourceIcon);
  
          item.setActionView(myCustomView);
      }
  }
  </code></pre>
  
  <p>But <code>setActionView()</code> doesn't work. Just standard text only item is created. Does anyone know how to create menu item with custom layout programatically?</p>