Skip to content
Minto Issac edited this page Nov 30, 2015 · 2 revisions

material-colorpicker

A simple, minimalistic and beautiful color picker for Android 4.1+ devices.The library is a clone of the repo https://github.com/4k3R/material-color-picker.

Features

Get Hex & RGB color codes
Set color using RGB values and get HEX codes
Uses Android Lollipop's setStatusBarColor() to set color of status bar (Notification bar) which changes with change in color palette
Separate UI for portrait and landscape devices
Support for pre-lollipop devices

Portrait Dialog Design inspired from Dribble by Lucas Bonomi

Usage

ColorPicker cp= new ColorPicker(context, 255, 255, 255);
cp.setCallbackListener(new ColorPicker.Callback() {
@Override
public void onSet(int color) {
// Do whatever you want with the color
cp.dismiss();
}
});
Clone this wiki locally