Skip to content

Instantly share code, notes, and snippets.

@Nathaniel100
Created June 1, 2016 16:58
Show Gist options
  • Save Nathaniel100/1b3ab2dfbfc9406e2aaf42f96ba8dcc6 to your computer and use it in GitHub Desktop.
Save Nathaniel100/1b3ab2dfbfc9406e2aaf42f96ba8dcc6 to your computer and use it in GitHub Desktop.
material design theme
<resources>
<!-- inherit from the AppCompat theme -->
<style name="AppTheme" parent="Theme.AppTheme">
<!-- your app branding color for the app bar -->
<item name="colorPrimary">@color/primary</item>
<!-- darker variant for the status bar and contextual app bars -->
<item name="colorPrimaryDark">@color/primary_dark</item>
<!-- theme UI controls like checkboxes and text fields -->
<item name="colorAccent">@color/accent</item>
<!-- change the normal state of unchecked checkboxes, etc -->
<item name="colorControlNormal">@color/colorControlNormal</item>
<!-- overrides colorAccent on activated/checked UI controls -->
<item name="colorControlActivated">@color/colorControlActivated</item>
<!-- controls the ripple coloring -->
<item name="colorControlHighlight">@color/colorControlHighlight</item>
</style>
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment