Skip to content
Beautiful color picker dialog for Android 9+
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
art
gradle/wrapper v.1.1.4 Dec 21, 2016
library Removed crap from manifest and updated support library. Feb 7, 2017
sample
.gitignore
Color-O-Matic.iml
LICENSE
README.md
build.gradle Removed crap from manifest and updated support library. Feb 7, 2017
gradle.properties First commit. Apr 3, 2016
gradlew
gradlew.bat
settings.gradle

README.md

Color-O-Matic

Android Arsenal

Beautiful Color Picker dialog for Android 9+ based on VintageChroma by Pavel Sikun. Screenshots at the end of the file.

Repository

Add this in your root build.gradle file (not your module build.gradle file):

allprojects {
	repositories {
		...
		maven { url "https://jitpack.io" }
	}
}

Dependency

Add this to your module's build.gradle file (make sure the version matches the JitPack badge above):

dependencies {
	...
	compile 'com.github.GrenderG:Color-O-Matic:1.1.5'
}

Usage

To display a color picker DialogFragment:

  new ColorOMaticDialog.Builder()
      .initialColor(Color.WHITE)
      .colorMode(ColorMode.ARGB) // RGB, ARGB, HVS
      .indicatorMode(IndicatorMode.HEX) // HEX or DECIMAL; Note that using HSV with IndicatorMode.HEX is not recommended
      .onColorSelected(new OnColorSelectedListener() {
          @Override
          public void onColorSelected(@ColorInt int i) {
              // do your stuff
          }
      })
      .showColorIndicator(true) // Default false, choose to show text indicator showing the current color in HEX or DEC (see images) or not
      .create()
      .show(getSupportFragmentManager(), "ColorOMaticDialog");

See sample project for more info.

Screenshots

You can’t perform that action at this time.