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.
- 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'
}
MIT © Tianscar