Pikolo

Additional

Language
Kotlin
Version
1.1.8 (Oct 28, 2018)
Created
Jun 2, 2017
Updated
Oct 28, 2018
Owner
Madrapps
Contributors
ligi
Instrap (instrap)
Henry (thsaravana)
3
Activity
Badge
Generate
Download
Source code
APK file

Advertising

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.