Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Create a custom style and set the Parent style to the holo light theme but the ActionBar to normal Holo.</p> <p>a xml file with something like this should do the job (just out of my memory):</p> <pre><code>&lt;style name="appstyle0" parent="android:style/Theme.Holo.Light"&gt; &lt;item name="android:actionBarStyle"&gt;@android:style/Widget.Holo.ActionBar&lt;/item&gt; &lt;/style&gt; </code></pre> <p>Then set the appstyle0 in your AndroidManifest.xml as style and in all your Activitys are holo light theme but the action bar style is holo dark.</p> <p><strong>Edit:</strong> I checked why my first answer does not work.</p> <pre><code>&lt;style name="Widget.Holo.Light.ActionBar" parent="Widget.Holo.ActionBar"&gt; &lt;item name="android:titleTextStyle"&gt;@android:style/TextAppearance.Holo.Widget.ActionBar.Title&lt;/item&gt; &lt;item name="android:subtitleTextStyle"&gt;@android:style/TextAppearance.Holo.Widget.ActionBar.Subtitle&lt;/item&gt; &lt;item name="android:background"&gt;@android:drawable/ab_transparent_light_holo&lt;/item&gt; &lt;item name="android:backgroundStacked"&gt;@android:drawable/ab_stacked_transparent_light_holo&lt;/item&gt; &lt;item name="android:backgroundSplit"&gt;@android:drawable/ab_bottom_transparent_light_holo&lt;/item&gt; &lt;item name="android:homeAsUpIndicator"&gt;@android:drawable/ic_ab_back_holo_light&lt;/item&gt; &lt;item name="android:progressBarStyle"&gt;@android:style/Widget.Holo.Light.ProgressBar.Horizontal&lt;/item&gt; &lt;item name="android:indeterminateProgressStyle"&gt;@android:style/Widget.Holo.Light.ProgressBar&lt;/item&gt; &lt;/style&gt; </code></pre> <p>The action bar is defined in styles.xml with attributes that are set by the main theme in general. First of all the BG is transparent, so you should use "Widget.Holo.Light.ActionBar.Solid" as parent. Then you have to set the different items one by one to the dark theme. Lets take titleTextStyle as example:</p> <pre><code>&lt;style name="TextAppearance.Holo.Widget.ActionBar.Title.Own" parent="TextAppearance.Holo.Widget.ActionBar.Title"&gt; &lt;item name="android:textColor"&gt;@android:color/primary_text_holo_dark&lt;/item&gt; &lt;item name="android:textColorHighlight"&gt;@android:color/highlighted_text_holo_dark&lt;/item&gt; &lt;item name="android:textColorHint"&gt;@android:color/hint_foreground_holo_dark&lt;/item&gt; &lt;item name="android:textColorLink"&gt;@android:color/holo_blue_light&lt;/item&gt; &lt;/style&gt; </code></pre> <p>Set this now as.</p> <pre><code>&lt;item name="android:titleTextStyle"&gt;@android:style/TextAppearance.Holo.Widget.ActionBar.Title.Own&lt;/item&gt; </code></pre> <p>Proceed like this with the xml attributes above. </p> <p>To find all related attributes search in styles.xml and themes.xml for the parameters. Sorry to tell, but I guess there is no easy way, according to what I see...</p>
 

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