Skip to content

Instantly share code, notes, and snippets.

@jamesmontemagno
Created April 17, 2014 06:47
Show Gist options
  • Save jamesmontemagno/10958639 to your computer and use it in GitHub Desktop.
Save jamesmontemagno/10958639 to your computer and use it in GitHub Desktop.
Transparent ActionBar
<!-- Application theme. -->
<style name="MyTheme" parent="@android:style/Theme.Holo">
<item name="android:windowActionBarOverlay">true</item>
<item name="android:actionBarStyle">@style/MyTheme.ActionBar</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowBackground">@color/red_background</item>
</style>
<style name="MyTheme.ActionBar" parent="android:Widget.Holo.ActionBar">
<item name="android:background">@android:color/transparent</item>
<item name="android:backgroundStacked">@android:color/transparent</item>
<item name="android:displayOptions">showTitle</item>
<item name="android:titleTextStyle">@style/MyTheme.ActionBar.TitleTextStyle</item>
</style>
<style name="MyTheme.ActionBar.TitleTextStyle" parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title">
<item name="android:fontFamily">sans-serif-light</item>
<item name="android:textSize">20sp</item>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment