android-colorparser
ZeroBrain
7
Visit GitHub RepoColors

Android Color Parser

Android android.graphics.Color has a function for color-parsing.

but It supports basic colors of w3c.

This project is for supporting more color keywords. It's based on W3C's Expanded Color

How to install

dependencies {
    repositories {
        jcenter()
        // or
        maven {
            url  "http://dl.bintray.com/zerobrain/maven" 
        }
    }
    
    compile 'com.nobrain.android.colorparser:color-parser:1.0.0'
}

How to use

// parsing lime or 0x00ff00
ColorParser.parse("#FF00FF00"); 
ColorParser.parse("#00FF00"); 
ColorParser.parse("#F0F0");
ColorParser.parse("#0F0");
ColorParser.parse("lime");
ColorParser.parse("LIME");

LICENSE

Apache License Version 2.0

Become a better Android Developer
Millions of developers are learning at MindOrks

Online Training Program

Featured Blogs

Our Team

MindOrks is Certainly one of the best online blog to stay on top of all the Android development news, coding and design patterns. Finally a blog I can count on to keep myself updated with latest and greatest things happening in Android world.

Vipul Shah
Android Developer
Microsoft

Become Pro in Android by watching videos

OUR LEARNERS WORK AT