Skip to content

Instantly share code, notes, and snippets.

@Hackforid
Created October 22, 2014 11:56
Show Gist options
  • Save Hackforid/7d8e4084053efb905ea5 to your computer and use it in GitHub Desktop.
Save Hackforid/7d8e4084053efb905ea5 to your computer and use it in GitHub Desktop.
Android Style
<resources>
<style name="AppBaseTheme" parent="Theme.AppCompat.Light">
</style>
<style name="AppBaseTheme.Compact" parent="AppBaseTheme">
</style>
<style name="AppTheme.Preference" parent="android:Theme.Holo.Light"/>
<style name="AppTheme" parent="AppBaseTheme.Compact">
<item name="colorPrimary">@color/primary_red</item>
<item name="colorPrimaryDark">@color/primary_dark_red</item>
</style>
</resources>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppBaseTheme.Compact" parent="AppBaseTheme">
<item name="android:windowBackground">@color/primary_dark_red</item>
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
<item name="android:fitsSystemWindows">true</item>
</style>
</resources>
<resources>
<!-- Base application theme. -->
<style name="AppBaseTheme" parent="android:Theme.Material.Light">
<!-- Customize your theme here. -->
</style>
<style name="AppTheme.Preference" parent="android:Theme.Material.Light"/>
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment