Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If someone needs the transparent bar but only for certain activities while using a solid one in the rest of them, it might be worth creating two different styles and using the manifest to get control over it:</p> <pre class="lang-xml prettyprint-override"><code>&lt;style name="MyThemeOverlay" parent="Theme.Sherlock"&gt; ... &lt;item name="windowActionBarOverlay"&gt;true&lt;/item&gt; &lt;!-- for ActionBarSherlock --&gt; &lt;item name="android:windowActionBarOverlay"&gt;true&lt;/item&gt; &lt;!-- any stuff common here, colours, etc --&gt; &lt;!-- define the style for native ActionBar for Android 4 and higher --&gt; &lt;item name="android:actionBarStyle"&gt;@style/myActionbarTransparent&lt;/item&gt; &lt;!-- define the style for ActionBarSherlock --&gt; &lt;item name="actionBarStyle"&gt;@style/myActionbarTransparent&lt;/item&gt; &lt;/style&gt; &lt;style name="MyThemeNoOverlay" parent="MyTheme"&gt; &lt;item name="windowActionBarOverlay"&gt;false&lt;/item&gt; &lt;!-- for ActionBarSherlock --&gt; &lt;item name="android:windowActionBarOverlay"&gt;false&lt;/item&gt; &lt;!-- any stuff specific for no overlay activity action bars --&gt; &lt;!-- define the style for native ActionBar for Android 4 and higher --&gt; &lt;item name="android:actionBarStyle"&gt;@style/myActionbar&lt;/item&gt; &lt;!-- define the style for ActionBarSherlock --&gt; &lt;item name="actionBarStyle"&gt;@style/myActionbar&lt;/item&gt; &lt;/style&gt; &lt;style name="myActionbar" parent="@android:style/Widget.Holo.ActionBar"&gt; &lt;item name="android:background"&gt;@color/white&lt;/item&gt; &lt;/style&gt; &lt;style name="myActionbarTransparent" parent="@android:style/Widget.Holo.ActionBar"&gt; &lt;item name="android:background"&gt;@color/transparent&lt;/item&gt; &lt;/style&gt; </code></pre> <p>and then in your <code>AndroidManifest.xml</code> you can either use one of them as default and the other one for some specific activities by doing something like:</p> <pre class="lang-xml prettyprint-override"><code>&lt;application ... android:theme="@style/MyThemeOverlay"&gt; ... &lt;activity android:name=".Activity1" /&gt; &lt;activity android:name=".Activity2" android:theme="@style/MyThemeNoOverlay" /&gt; &lt;activity android:name=".Activity3" /&gt; &lt;activity android:name=".Activity4" android:theme="@style/MyThemeNoOverlay" /&gt; </code></pre> <p>...</p>
    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.
    1. VO
      singulars
      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