Java Material Design Colors (color/string)
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
compile 'com.github.fcannizzaro:material-colors:0.1.0'
}
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.fcannizzaro</groupId>
<artifactId>material-colors</artifactId>
<version>0.1.0</version>
</dependency>
</dependencies>
// awt.Color
Color primary = Colors.indigo_500.asColor();
// String
String primary_dark = Colors.indigo_700.asString();
Usage with Resourcer
Use color name in xml files!
<?xml version="1.0"?>
<resources>
<color name="primary">@color/indigo_500</color>
<color name="accent" >@color/pink_accent_400</color>
</resources>