Note that there are some explanatory texts on larger screens.

plurals
  1. POActionSherlockBar Styling - PopupMenu
    primarykey
    data
    text
    <p>Styling is a place for improvement in my knowledge of the android platform. Given I've being trying to make a simple change all morning and been unable to achieve it.</p> <p>I want to change the style of the overflow menu in the action bar. I have been able to change the background color, and add animations, so that when clicked it fades to a selected colour. But for the life of me I cannot change the text colour.</p> <p>Below are two screenshots, one using the Theme.Sherlock and the other using Theme.Sherlock.Light.</p> <p><strong>Theme.Sherlock</strong> - This is my current setting which I have customised. What I want is the overflow (aka android:popupmenu) to be in the holo theme (as below), and ideally so that I can change the text colour.</p> <p><img src="https://i.stack.imgur.com/CEiiy.jpg" alt="Theme.Sherlock"></p> <p><strong>Theme.Sherlock.Light</strong> - This theme shows the style of overflow menu that I want to see. However, as highlighted in red, the overflow button is the wrong colour, and this theme also draws a horizontal line. </p> <p><img src="https://i.stack.imgur.com/mXZfa.jpg" alt="Theme.Sherlock.Light"></p> <p>I don't know whether it is best/easier to change Theme.Sherlock with the popup issue, or Theme.Sherlock.Light with the overflow icon and line issue. The application is of a "Light" theme so option two is probably the long term better choice, however i'll accept an answer that can solve the problem by changing either theme.</p> <p>p.s. Where do you find a list of attributes for changing theme/styles, auto-complete is very incomplete in eclipse.</p> <p><strong>Update</strong></p> <p>This is actually an update for native action bars as im back to the same problem, but no longer supporting 2.3 or below.</p> <pre class="lang-html prettyprint-override"><code>&lt;style name="AppTheme" parent="android:Theme.Holo.Light"&gt; &lt;item name="android:actionOverflowButtonStyle"&gt;@style/OverFlow&lt;/item&gt; &lt;/style&gt; &lt;style name="OverFlow" parent="@android:style/Widget.Holo.ActionButton.Overflow"&gt; &lt;item name="android:src"&gt;**Insert your icon here**&lt;/item&gt; &lt;/style&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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