Pikolo
An android color picker library
Download
repositories {
jcenter() // or mavenCentral()
}
dependencies {
compile 'com.github.madrapps:pikolo:1.1.6'
}
Usage
Add the HSLColorPicker
view to your layout and use it in code as below:
final HSLColorPicker colorPicker = (HSLColorPicker) findViewById(R.id.colorPicker);
colorPicker.setColorSelectionListener(new SimpleColorSelectionListener() {
@Override
public void onColorSelected(int color) {
// Do whatever you want with the color
imageView.getBackground().setColorFilter(color, PorterDuff.Mode.MULTIPLY);
}
}
);
License
Pikolo by Madrapps is licensed under a Apache License 2.0.