Note that there are some explanatory texts on larger screens.

plurals
  1. POLight.DarkActionBar menu item text colour unchangeable?
    primarykey
    data
    text
    <p>The application I've been developing uses ActionBarSherlock, and the main theme inherits from Theme.Sherlock.Light.DarkActionBar. The design requires that the overflow menu popups have a dark coloured background and white text. This works fine for devices without a physical menu button, and the text appears white as intended. However, if the device DOES have a physical menu button, the text shown in the menu displayed remains black.</p> <p>My main theme contains</p> <pre><code>&lt;item name="android:panelBackground"&gt;@drawable/menu_hardkey_panel&lt;/item&gt; </code></pre> <p>...Where @drawable/menu_hardkey_panel is a dark coloured 9patch.</p> <p>The resulting appearance of the menu popup is... <img src="https://i.stack.imgur.com/bAV5w.png" alt="Light.DarkActionbar issue"></p> <p>I'm unable to determine why this is happening, or how to manually change the colour of the text. In my main theme, I've tried all of the following...</p> <pre><code>&lt;item name="android:actionMenuTextColor"&gt;@android:color/white&lt;/item&gt; &lt;item name="android:textAppearanceLargePopupMenu"&gt;@style/MyMenuTextAppearance.Large&lt;/item&gt; &lt;item name="android:textAppearanceSmallPopupMenu"&gt;@style/MyMenuTextAppearance.Small&lt;/item&gt; </code></pre> <p>I've even tried</p> <pre><code>&lt;item name="android:actionBarWidgetTheme"&gt;@style/Theme.MyApp.Dark&lt;/item&gt; </code></pre> <p>...Where Theme.MyApp.Dark is...</p> <pre><code>&lt;style name="Theme.MyApp.Dark" parent="@style/Theme.Sherlock"&gt; &lt;item name="android:dropDownListViewStyle"&gt;@style/DropDownListView&lt;/item&gt; &lt;item name="dropDownListViewStyle"&gt;@style/DropDownListView&lt;/item&gt; &lt;/style&gt; </code></pre> <p>None have let me change the text to white. If I make my base theme inherit from Theme.Sherlock, the problem is solved and the text is white, but unfortunately that's not an option.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload