Note that there are some explanatory texts on larger screens.

plurals
  1. POSetting My App's Theme
    primarykey
    data
    text
    <p>In my styles.xml file in the values-v14 folder (my app is API 16+, so I'm not too worried about the values-v11 and values folder), I have this line:</p> <pre><code>&lt;style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar"&gt; </code></pre> <p>In my class, I have these lines:</p> <pre><code>ActionBar actionBar = getActionBar(); actionBar.setBackgroundDrawable(new ColorDrawable(Color.WHITE)); actionBar.setTitle("TEXT"); </code></pre> <p>Unfortunately, the result of this is that I have a line of text that's white in color on a white background (pretty much becoming invisible). I am aiming for black text on a white background. I tried using <code>setTitleColor(Color.BLACK);</code> but that doesn't change the text color.</p> <p>I've also tried writing <code>parent="android:Theme.Holo.Light.LightActionBar"</code> but that doesn't seem to exist. I've tried writing <code>parent="android:Theme.Holo.Light.ActionBar"</code> but that doesn't seem to exist. I've tried writing <code>parent="android:Theme.Holo.Light"</code> but, while that exists, it doesn't change the text color.</p> <p>So what's the right combination that I should be using here?</p> <p>On another note, I have an overflow menu icon (the 3 little vertical squares) that's also exhibiting the same problem, it's white and I want it to be the typical gray that one normally sees on a light background.</p> <p><strong>Edit:</strong></p> <pre><code>&lt;resources&gt; &lt;!-- Base application theme for API 14+. This theme completely replaces AppBaseTheme from BOTH res/values/styles.xml and res/values-v11/styles.xml on API 14+ devices. --&gt; &lt;style name="AppBaseTheme" parent="android:Theme.Holo.Light"&gt; &lt;!-- API 14 theme customizations can go here. --&gt; &lt;/style&gt; &lt;/resources&gt; </code></pre>
    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.
    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