An AndroidColorPicker Library.

Here is the demo screenshot:

Step 1: Installation

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

allprojects {
    repositories {
        maven { url "" }

Then declare the dependency:

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

dependencies {
    implementation 'com.github.mejdi14:AndroidColorPicker:1.0.2'

Step 2: Use it

Use it with Kotlin as shown below:

                .setColorListener { color, colorHex ->
                    // color and colorHex are the chosen color

Here is how you use it with Java:

  MHColorsDialog mhColorsDialog=new MHColorsDialog(MainActivity.this);
                mhColorsDialog.setColorListener(new ColorListener() {
                    public void onColorSelected(int color, @NotNull String colorHex) {
                          // color and colorHex are the chosen color

ColorPicker Dark Mode

Dark Mode



Add new colors


where colorsList is anArrayList<Int> (every Int represent a color).
ColorsPosition is where your colors should be in the final list of colors (Start or End)

Use your own colors as shown below:


where colorsList is an ArrayList<Int> (every Int represent a color)
this will make the library ignore the default colors and use only your colors from colorsList


Read more here.