emre-h / ColorPicker-Lib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Color-Picker

A lightweight,simple,dynamic color picker library for Android

1.0.1

Implementation:

implementation 'com.github.metahex:Color-Picker:master-SNAPSHOT'

Screenshots:

Usage

        final ColorPickerDialog colorPickerDialog = new ColorPickerDialog(this);

        colorPickerDialog.addColors(colors16);

        colorPickerDialog.setBackgroundColor(Color.parseColor("#ffffff"));
        
        colorPickerDialog.setHeaderColor(Color.parseColor("#000000"));
        
        ...
        //Look for other customization functions in the class
        
        colorPickerDialog.setColorChooserListener(new ColorChooserListener() {
            @Override
            public void onColorChose(int color) {
                //Do something with the chosen color
            }
        });
        ```

About

License:MIT License


Languages

Language:Java 100.0%