title: Overflow menu items text align to center
body: <p>I have an action-bar with an overflow menu.
  In that overflow menu i have text in each item.
  currently the items are align to left. 
  And i want them to align to center in the overflow menu through XML.</p>
  
  <p>Below there is my themes.xml - in "myCustomMenuTextApearance" style i used the "gravity" attribute but it didn't work.
  When i moved the "gravity" attribute to "MyAppActionBarTheme" style it worked the items were centered but also all the rest of the TextView i have in my Activity layout.
  Which isn't what i wanted at all.</p>
  
  <p>I found these links but didn't found any help there:
  1. <a href="https://stackoverflow.com/questions/22702588/align-items-inside-of-a-menu-coming-from-actionbar">https://stackoverflow.com/questions/22702588/align-items-inside-of-a-menu-coming-from-actionbar</a></p>
  
  <p><a href="https://stackoverflow.com/questions/14759897/how-to-align-menu-item-text-in-actionbar-overflow-menu">How to align menu item text in Actionbar overflow menu</a></p>
  
  <p><a href="https://stackoverflow.com/questions/19344297/align-center-menu-item-text-in-android">Align Center Menu Item text in android</a></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;style name="MyAppActionBarTheme" parent="android:Theme.Holo.Light"&gt;
      &lt;item name="android:popupMenuStyle" tools:targetApi="11"&gt;@style/MyApp.PopupMenu&lt;/item&gt;
      &lt;item name="android:itemTextAppearance"&gt;@style/myCustomMenuTextApearance&lt;/item&gt;
      &lt;item name="android:actionBarStyle" tools:targetApi="11"&gt;@style/MyApp.ActionBar&lt;/item&gt;
  
  &lt;/style&gt;
  
  &lt;!-- The beef: background color for Action Bar overflow menu --&gt;
  &lt;style name="MyApp.PopupMenu" parent="android:Widget.Holo.Light.ListPopupWindow"&gt;
      &lt;item name="android:popupBackground"&gt;@drawable/ab_menu_bkg&lt;/item&gt;
  
  &lt;/style&gt;
  
  &lt;style name="myCustomMenuTextApearance" parent="@android:style/TextAppearance.Widget.TextView.PopupMenu"&gt;
      &lt;item name="android:textColor"&gt;@color/red&lt;/item&gt;
      &lt;item name="android:gravity"&gt;center_horizontal&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;!-- Bonus: if you want to style whole Action Bar, not just the menu --&gt;
  &lt;style name="MyApp.ActionBar" parent="android:Widget.Holo.Light.ActionBar.Solid"&gt;
  
      &lt;!-- Blue background color &amp; black bottom border --&gt;
      &lt;item name="android:background"&gt;@color/red&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p></p>
  
  <p>Any help will be appreciated.</p>