Created
August 5, 2014 18:04
-
-
Save anonymous/c2270909ea4549ceae46 to your computer and use it in GitHub Desktop.
Action Bar Styling
This file contains hidden or 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
<color name="sunshine_blue">#ff1ca8f4</color> |
This file contains hidden or 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
<!-- Note when copying: Make sure you remove the existing AppTheme declared in the styles file --> | |
<!-- Base application theme --> | |
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> | |
<item name="actionBarStyle">@style/ActionBar.Solid.Sunshine</item> | |
</style> | |
<!-- ActionBar style --> | |
<style name="ActionBar.Solid.Sunshine" | |
parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse"> | |
<item name="background">@color/sunshine_blue</item> | |
</style> | |
<!-- Main activity theme --> | |
<style name="ForecastTheme" parent="AppTheme"> | |
<item name="actionBarStyle">@style/ActionBar.Solid.Sunshine.NoTitle</item> | |
</style> | |
<!-- Main activity action bar style --> | |
<style name="ActionBar.Solid.Sunshine.NoTitle" | |
parent="@style/ActionBar.Solid.Sunshine"> | |
<item name="displayOptions">useLogo|showHome</item> | |
<item name="logo">@drawable/ic_logo</item> | |
</style> |
This file contains hidden or 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
<!-- Note when copying: Make sure you remove the existing AppTheme declared in the styles file --> | |
<!-- Base application theme --> | |
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> | |
<item name="android:actionBarStyle">@style/ActionBar.Solid.Sunshine</item> | |
</style> | |
<!-- ActionBar style --> | |
<style name="ActionBar.Solid.Sunshine" | |
parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse"> | |
<item name="android:background">@color/sunshine_blue</item> | |
</style> | |
<!-- Main activity theme --> | |
<style name="ForecastTheme" parent="AppTheme"> | |
<item name="android:actionBarStyle">@style/ActionBar.Solid.Sunshine.NoTitle</item> | |
</style> | |
<!-- Main activity action bar style --> | |
<style name="ActionBar.Solid.Sunshine.NoTitle" parent="@style/ActionBar.Solid.Sunshine"> | |
<item name="android:displayOptions">useLogo|showHome</item> | |
<item name="android:logo">@drawable/ic_logo</item> | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment