Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Tianscar/ColorPicker

Repository files navigation

ColorPicker

Simple ColorPicker widgets for Android.

  • Style attributes supports both XML & Java code.
  • Interface example
 rectColorPicker.setOnColorPickedListener(new RectColorPicker.OnColorPickedListener() {
            @Override
            public void onColorPicked(RectColorPicker picker, int color) {
                // DO SOMETHING
            }
        });
  • RectColorPicker
    demo
    Supports horizontal & vertical orientation.
    Supports ascending & descending order.

    Horizontal Ascending


    Horizontal Descending


    Vertical Ascending


    Vertical Descending


  • RoundColorPicker
    Coming soon.

To get a Git project into your build (gradle):

  • Step 1. Add the JitPack repository to your build file
    Add it in your root build.gradle at the end of repositories:
allprojects {
        repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}
  • Step 2. Add the dependency:
dependencies {
	...
	implementation 'com.github.tianscar:colorpicker:1.0.0.2'
}

License

MIT © Tianscar