Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.01 KB

README.md

File metadata and controls

47 lines (33 loc) · 1.01 KB

Android RGBA  Build Status codebeat badge

🎨 RGBA color string utilities for Android

Requirements

  • Android 4.0.3 (API Level 15) or later

Getting Started

Please type it in your build.gradle file.

repositories {
    jcenter()
}

dependencies {
    compile 'moe.pine.rgba:rgba:0.1.0'
    compile 'moe.pine.rgba:rgba-kotlin:0.1.0' // for Kotlin Extension
}

Usage

Java

int color = RGBAUtils.RGBAToColor("#00ff00ff");
String rgba = RGBAUtils.colorToRGBA(color);

Kotlin

val color = "#00ff00ff".toColor()
val rgba = color.toRGBA()

Upload to Bintray

$ ./gradlew clean assemble bintrayUpload

License

MIT © Emoji Generator