Pikolo

Additional

Language
Kotlin
Version
2.0.1 (May 26, 2019)
Created
Jun 2, 2017
Updated
May 26, 2019
Owner
Madrapps
Contributors
ligi
Instrap (instrap)
Henry (thsaravana)
3
Activity
Badge
Generate
Download
Source code
APK file

Promotion

Pikolo

An android color picker library

Download

repositories {
  jcenter() // or mavenCentral()
}

dependencies {
  implementation 'com.github.madrapps:pikolo:2.0.0'
}

Features

  • Includes HSLColorPicker and RGBColorPicker
  • Full customization of the various parts of the color picker (like arc length, arc position, indicator size, color, etc...) using XML attributes

Usage

Add the HSLColorPicker or RGBColorPicker view to your layout and use it in code as below:

final ColorPicker colorPicker = 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.