title: Themeing the Popup of the ShareActionProvider from ActionBarSherlock
body: <p>I want to theme the <code>ShareActionProvider</code> of the ActionBarSherlock. My problem is that I successfully customized the styles of the ActionBar but I cannot style the share popup which comes from the ActionBarSherlock.</p>
  
  <p><img src="https://i.stack.imgur.com/wdiiH.png" alt="Share and Menu example"></p>
  
  <p>In the Screenshot above you can see the share popup uses the default styles while a normal <em>more</em> popup is styled in that way I like.</p>
  
  <p>I digged more thrue the source code and found in <code>ActivityChooserView</code> this method:</p>
  
  <pre><code>private IcsListPopupWindow getListPopupWindow() {
      if (mListPopupWindow == null) {
          mListPopupWindow = new IcsListPopupWindow(getContext());
          //...
  </code></pre>
  
  <p>Which is as far I know responsable for creating that Popup of the <code>ShareActionProvider</code>. As you can see above a new instance of <code>IcsListPopupWindow</code> is created. Here are the constructors of <code>IcsListPopupWindow</code>:</p>
  
  <pre><code>public IcsListPopupWindow(Context context) {
      this(context, null, R.attr.listPopupWindowStyle);
  }
  
  public IcsListPopupWindow(Context context, AttributeSet attrs, int defStyleAttr) {
      mContext = context;
      mPopup = new PopupWindow(context, attrs, defStyleAttr);
      mPopup.setInputMethodMode(PopupWindow.INPUT_METHOD_NEEDED);
  }
  </code></pre>
  
  <p>So far the attr <code>com.actionbarsherlock.R.attr.listPopupWindowStyle</code> used. While this attr is inserted the one and two parameter constructor of <code>IcsListPopupWindow</code> created a new <code>PopupWindow</code> with the attr <code>com.android.internal.R.attr.popupWindowStyle</code> which seems to be equal with <code>android.R.attr.popupWindowStyle</code>:</p>
  
  <pre><code>public PopupWindow(Context context, AttributeSet attrs) {
      this(context, attrs, com.android.internal.R.attr.popupWindowStyle);
  }
  
  public PopupWindow(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
      mContext = context;
      mWindowManager = (WindowManager)context.getSystemService(Context.WINDOW_SERVICE);
  
      TypedArray a =
          context.obtainStyledAttributes(
              attrs, com.android.internal.R.styleable.PopupWindow, defStyleAttr, defStyleRes);
  
      mBackground = a.getDrawable(R.styleable.PopupWindow_popupBackground);
  
      // ...
  </code></pre>
  
  <p>There you can see that the background image is loaded from a style called <code>styleable.PopupWindow_popupBackground</code>. I tried to apply my style with this xml file:</p>
  
  <pre><code>&lt;style name="Theme.MyStyle" parent="@style/Theme.Sherlock.Light.DarkActionBar"&gt;
      &lt;!-- ... --&gt;
      &lt;item name="actionDropDownStyle"&gt;@style/DropDownNav.MyStyle&lt;/item&gt;
      &lt;item name="dropDownListViewStyle"&gt;@style/DropDownListView.MyStyle&lt;/item&gt;
      &lt;item name="actionBarItemBackground"&gt;@drawable/selectable_background_mystyle&lt;/item&gt;
      &lt;item name="listPopupWindowStyle"&gt;@style/DropDownNav.MyStyle&lt;/item&gt;
      &lt;item name="android:listPopupWindowStyle"&gt;@style/DropDownNav.MyStyle&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="DropDownNav.MyStyle" parent="@style/Widget.Sherlock.Spinner.DropDown.ActionBar"&gt;
      &lt;item name="android:popupBackground"&gt;@drawable/menu_dropdown_panel_mystyle&lt;/item&gt;
      &lt;item name="android:divider"&gt;#081925&lt;/item&gt;
      &lt;item name="android:dividerHeight"&gt;1dp&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="DropDownListView.MyStyle" parent="@style/Widget.Sherlock.ListView.DropDown"&gt;
      &lt;item name="android:divider"&gt;#081925&lt;/item&gt;
      &lt;item name="android:dividerHeight"&gt;1dp&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p><strong>But it does not work. What am I doing wrong?</strong><br>
  By the way I would be really happy if someone could give me a good tutorial for styleable and the attr stuff I don't get it right.</p>