Get quick access to all Material Design colors in both Java and XML.
Add the JitPack maven repository to the list of repositories:
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
Add the dependency to the gradle build file:
dependencies {
compile 'com.github.calintat:chromatic:1.0.1'
}
Now you have access to the entire Material Design color palette:
coordinatorLayout.setStatusBarColor(blue700);
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/blue_500</item>
<item name="colorPrimaryDark">@color/blue_700</item>
<item name="colorAccent">@color/yellow_A200</item>
</style>