All Projects → aziztitu → Androidphotoshopcolorpicker

aziztitu / Androidphotoshopcolorpicker

Licence: artistic-2.0
A fully featured Color picker Library for Android

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Androidphotoshopcolorpicker

SwiftColorWheel
Delightful color picker wheel for iOS in Swift.
Stars: ✭ 37 (-83.18%)
Mutual labels:  color, color-picker, colors
Colorpicker
jQuery UI widget for color picking (similar to the one in Microsoft Office 2010).
Stars: ✭ 271 (+23.18%)
Mutual labels:  color, colors, color-picker
pantone-colors
Hex values of all 2310 Pantone colors
Stars: ✭ 147 (-33.18%)
Mutual labels:  color, color-picker, colors
Kallewheel
A custom color wheel extension for Adobe Photoshop
Stars: ✭ 16 (-92.73%)
Mutual labels:  photoshop, color, color-picker
global-color-picker
start the script and click anywhere to get rgb value at the cursor location
Stars: ✭ 31 (-85.91%)
Mutual labels:  color, color-picker, colors
Leonardo
Generate colors based on a desired contrast ratio
Stars: ✭ 973 (+342.27%)
Mutual labels:  color, colors, color-picker
Colors.lol
🎨 Overly descriptive color palettes
Stars: ✭ 207 (-5.91%)
Mutual labels:  color, colors
Nord Hyper
An arctic, north-bluish clean and elegant Hyper theme plugin.
Stars: ✭ 96 (-56.36%)
Mutual labels:  color, colors
Bootstrap Colorpicker
Bootstrap Colorpicker is a modular color picker plugin for Bootstrap.
Stars: ✭ 1,351 (+514.09%)
Mutual labels:  color, color-picker
Console Logging
Better, prettier commandline logging for Python--with colors! 👻
Stars: ✭ 111 (-49.55%)
Mutual labels:  color, colors
Colorpickerwpf
Simple color picker control for WPF
Stars: ✭ 71 (-67.73%)
Mutual labels:  color, color-picker
Colorwanted
Screen color picker for Windows (Windows 上的屏幕取色器)
Stars: ✭ 105 (-52.27%)
Mutual labels:  color, color-picker
Colors.jl
Color manipulation utilities for Julia
Stars: ✭ 114 (-48.18%)
Mutual labels:  color, colors
Colors App
🎨 A PWA for copying values from popular color palettes. Supports HEX, RGB, and HSL formats.
Stars: ✭ 90 (-59.09%)
Mutual labels:  color, color-picker
Color Names
Large list of handpicked color names 🌈
Stars: ✭ 1,198 (+444.55%)
Mutual labels:  color, colors
Values.js
🍇 Get the tints and shades of a color
Stars: ✭ 97 (-55.91%)
Mutual labels:  color, colors
Colors
List of 256 color codes for Xterm including an example of the color, Xterm Name, Xterm Number, HEX, RGB and HSL code.
Stars: ✭ 73 (-66.82%)
Mutual labels:  color, colors
React Color
🎨 Color Pickers from Sketch, Photoshop, Chrome, Github, Twitter & more
Stars: ✭ 10,287 (+4575.91%)
Mutual labels:  photoshop, color-picker
Colorbook
🎨 Color schemes for UI design - Optimized for foreground, background, border, etc. https://liyasthomas.github.io/colorbook
Stars: ✭ 148 (-32.73%)
Mutual labels:  color, color-picker
Pikolo
An android color picker library
Stars: ✭ 142 (-35.45%)
Mutual labels:  color, color-picker

AndroidPhotoshopColorPicker

Android Arsenal

A full featured Color picker Library for Android! Just like the one in Photoshop!

Features

  • Hue bar - Adjust hue using a slider
  • Saturation & Value Box - Select the color from the Saturation & Value Box (like in Photoshop)
  • Alpha bar - Adjust the alpha using a slider
  • Preview - You can see the current selected and previously picked colors side-by-side
  • Edit each component individually - You can edit Hue, Saturation, Value, Red, Green and Blue components individually
  • Fully customizable - By default, there are two themes(Light and Dark). But you can define your own theme to customize the whole ColorPicker
  • Easy to use - All the hardwork is done by us. Just a few lines of code is all you have to do

Requirements

Tested with APIv11, but will most probably work with earlier versions as well.

Installation (Adding to your project)

The library is posted on jcenter. So, just the following code should be enough to get you started:

Place this in your app module's build.gradle file:

    dependencies {
      compile 'com.azeesoft.lib.colorpicker:colorpicker:[email protected]'
    }

If there is any error while building the project using the above mentioned step, add the following code in that build.gradle file and build again:

    repositories {
        maven {
            url 'https://dl.bintray.com/azeesoft/maven'
        }
    }

After successful build, you can use ColorPickerDialog as a part of your project.

Usage

  1. Create a new ColorPickerDialog object using the static method createColorPickerDialog()

To create a default ColorPickerDialog with Light theme, use

        ColorPickerDialog colorPickerDialog= ColorPickerDialog.createColorPickerDialog(this);

To create a ColorPickerDialog with Dark theme, use

        ColorPickerDialog colorPickerDialog= ColorPickerDialog.createColorPickerDialog(this,ColorPickerDialog.DARK_THEME);
  1. Set an OnColorPickedListener to call when the color is picked:
        colorPickerDialog.setOnColorPickedListener(new ColorPickerDialog.OnColorPickedListener() {
            @Override
            public void onColorPicked(int color, String hexVal) {
                //Your code here
            }
        });
  1. Customize the colorPickerDialog if needed using appropriate methods and show the dialog:
        colorPickerDialog.setHexaDecimalTextColor(Color.parse("#ffffff")); //There are many functions like this
        colorPickerDialog.show();
  1. To create a ColorPickerDialog with Custom theme, create a new style with any of the ColorPicker themes as parent and use the following attributes:
  • cp_showOpacityBar (boolean) : Show/Hide Opacity Bar
  • cp_showHexaDecimalValue (boolean) : Show/Hide Hexadecimal Value
  • cp_showColorComponentsInfo (boolean) : Show/Hide Color components information(HSV, RGB, Alpha)
  • cp_backgroundColor (color) : Background color for the dialog
  • cp_hexaDecimalTextColor (color) : Text color for the Hexadecimal value
  • cp_colorComponentsTextColor (color) : Text color for the Color components information(HSV, RGB, Alpha)
  • cp_positiveActionTextColor (color) : Text color for the Positive Action
  • cp_negativeActionTextColor (color) : Text color for the Negative Action
  • cp_sliderThumbColor (color) : Color for the thumb of the slider of Hue bar and Opacity bar

Use any of the following as parent:

  • ColorPicker
  • ColorPicker.Dark
  • ColorPicker.Light

For eg:

styles.xml:

    <style name="CustomColorPicker" parent="ColorPicker">
        <item name="cp_backgroundColor">#4745e5</item>
        <item name="cp_hexaDecimalTextColor">#000046</item>
        <item name="cp_colorComponentsTextColor">#fff</item>
        <item name="cp_positiveActionTextColor">@color/colorAccent</item>
        <item name="cp_negativeActionTextColor">@color/colorPrimaryDark</item>
        <item name="cp_sliderThumbColor">#accc</item>
    </style>

In Java:

    ColorPickerDialog colorPickerDialog = ColorPickerDialog.createColorPickerDialog(this,R.style.CustomColorPicker);
    colorPickerDialog.setOnColorPickedListener(new ColorPickerDialog.OnColorPickedListener() {
        @Override
        public void onColorPicked(int color, String hexVal) {
            System.out.println("Got color: " + color);
            System.out.println("Got color in hex form: " + hexVal);
            
            // Make use of the picked color here
        }
    });
    colorPickerDialog.show();

Screenshots

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].