Created
October 16, 2015 11:40
-
-
Save kbshl/5d3fb3d18375b3c43f2a to your computer and use it in GitHub Desktop.
opaque Actionbar with AppCompat-v7 21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<color name="actionbar_opaque">#66000000</color> | |
<color name="statusBar">#9C9C9C</color> | |
<color name="primaryDark">#9C9C9C</color> | |
<color name="primary">#b2b2b2</color> | |
<color name="activated">#ef0000</color> | |
<color name="textPrimary">#ffffff</color> | |
<color name="accent">#ef0000</color> | |
<color name="highlight">#ef0000</color> | |
<color name="accent">#ef0000</color> | |
<color name="navigationBar">#b2b2b2</color> | |
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style name="Theme.APPNAME.TitleBar.Opaque" parent="@style/Theme.AppCompat.Light"> | |
<item name="android:actionBarStyle">@style/APPNAME.ActionBar.Opaque</item> | |
<item name="android:windowActionBarOverlay">true</item> | |
<!-- Support library compatibility --> | |
<item name="actionBarStyle">@style/APPNAME.ActionBar.Opaque</item> | |
<item name="windowActionBarOverlay">true</item> | |
</style> | |
<style name="APPNAME.ActionBar.Opaque" parent="@style/Widget.AppCompat.ActionBar"> | |
<item name="android:background">@color/actionbar_opaque</item> | |
<!-- Support library compatibility --> | |
<item name="background">@color/actionbar_opaque</item> | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment