All Projects → kristiyanP → Colorpicker

kristiyanP / Colorpicker

Licence: apache-2.0
A simple color picker library for Android

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Colorpicker

Colorpicker
jQuery UI widget for color picking (similar to the one in Microsoft Office 2010).
Stars: ✭ 271 (+71.52%)
Mutual labels:  colorpicker
Colorpicker
A highly customizable color picker for Android
Stars: ✭ 644 (+307.59%)
Mutual labels:  colorpicker
Bootstrap Colorpicker
Bootstrap Colorpicker is a modular color picker plugin for Bootstrap.
Stars: ✭ 1,351 (+755.06%)
Mutual labels:  colorpicker
Farge
Click on a pixel on your screen and show its color value
Stars: ✭ 307 (+94.3%)
Mutual labels:  colorpicker
Vanilla Colorful
A tiny color picker custom element for modern web apps (2.7 KB) 🎨
Stars: ✭ 467 (+195.57%)
Mutual labels:  colorpicker
Kallewheel
A custom color wheel extension for Adobe Photoshop
Stars: ✭ 16 (-89.87%)
Mutual labels:  colorpicker
UnityColorPicker
A standalone color picker asset for Unity
Stars: ✭ 70 (-55.7%)
Mutual labels:  colorpicker
React Native Login Template
Simple login template for React Native.
Stars: ✭ 133 (-15.82%)
Mutual labels:  colorpicker
Androidpicker
安卓选择器类库,包括日期及时间选择器(可用于出生日期、营业时间等)、单项选择器(可用于性别、民族、职业、学历、星座等)、二三级联动选择器(可用于车牌号、基金定投日期等)、城市地址选择器(分省级、地市级及区县级)、数字选择器(可用于年龄、身高、体重、温度等)、日历选日期择器(可用于酒店及机票预定日期)、颜色选择器、文件及目录选择器、图片选择器等……WheelPicker/DatePicker/TimePicker/OptionPicker/NumberPicker/LinkagePicker/AddressPicker/CarPlatePicker/CalendarPicker/ColorPicker/FilePicker/ImagePicker etc.
Stars: ✭ 5,320 (+3267.09%)
Mutual labels:  colorpicker
Amcolorpicker
AMColorPicker can select color by three ways.
Stars: ✭ 57 (-63.92%)
Mutual labels:  colorpicker
Pickr
🎨 Flat, simple, multi-themed, responsive and hackable Color-Picker library. No dependencies, no jQuery. Compatible with all CSS Frameworks e.g. Bootstrap, Materialize. Supports alpha channel, rgba, hsla, hsva and more!
Stars: ✭ 3,759 (+2279.11%)
Mutual labels:  colorpicker
Colorpickerpreference
🎨 A library that lets you implement ColorPicker, ColorPickerDialog, ColorPickerPreference.
Stars: ✭ 407 (+157.59%)
Mutual labels:  colorpicker
Colorbrewer
🌈 Create color blind friendly color palettes in Java
Stars: ✭ 29 (-81.65%)
Mutual labels:  colorpicker
Material Community Components
🐼 Angular Material Components created from the community
Stars: ✭ 280 (+77.22%)
Mutual labels:  colorpicker
Multi Colorpicker
Android multi colorpicker for getting colors from any images by tapping on the desired color.
Stars: ✭ 115 (-27.22%)
Mutual labels:  colorpicker
Egorozh.ColorPicker
🎨🎨🎨 Best of the best ColorPicker on WPF and AvaloniaUI
Stars: ✭ 39 (-75.32%)
Mutual labels:  colorpicker
Colorpicker
A mininal but complete colorpicker desktop app
Stars: ✭ 766 (+384.81%)
Mutual labels:  colorpicker
Orchestra
🎺 Orchestra is a collection of Android custom view compatible libraries for Jetpack Compose.
Stars: ✭ 139 (-12.03%)
Mutual labels:  colorpicker
Sliders Swiftui
Collection of unique fully customizable SwiftUI sliders, joysticks, trackpads and more!
Stars: ✭ 132 (-16.46%)
Mutual labels:  colorpicker
Colorpickerview
🎨 Android colorpicker for getting colors from any images by tapping on the desired color.
Stars: ✭ 1,042 (+559.49%)
Mutual labels:  colorpicker

ColorPicker Android Arsenal Build StatusDownload

A simple Android color picker library

screen1

screen2

screen3

Download

Download the latest JAR or grab via Gradle:

implementation 'petrov.kristiyan:colorpicker-library:1.1.10'

How to use

Example 1 :

ColorPicker colorPicker = new ColorPicker(activity);
colorPicker.show();
colorPicker.setOnChooseColorListener(new ColorPicker.OnChooseColorListener() {
	@Override
	public void onChooseColor(int position,int color) {
	    // put code
	}

	@Override
	public void onCancel(){
	// put code
	}
});

Example 2 :

final ColorPicker colorPicker = new ColorPicker(SampleActivity.this);
colorPicker.setFastChooser(new ColorPicker.OnFastChooseColorListener() {
	@Override
	public void setOnFastChooseColorListener(int position, int color) {
	  // put code
	}

	@Override
	public void onCancel(){
	// put code
	}
})
.setDefaultColor(Color.parseColor("#f84c44"))
.setColumns(5)
.show();

Example 3 :

final ColorPicker colorPicker = new ColorPicker(SampleActivity.this);
colorPicker.setOnChooseColorListener(new ColorPicker.OnChooseColorListener() {
	@Override
	public void onChooseColor(int position,int color) {
	// put code
	}

	@Override
	public void onCancel(){
	// put code
	}
})
.addListenerButton("newButton", new ColorPicker.OnButtonListener() {
	@Override
	public void onClick(View v, int position, int color) {
	    // put code
	}
})
.disableDefaultButtons(true)
.setDefaultColor(Color.parseColor("#f84c44"))
.setColumns(5)
.setDialogFullHeight()
.show();

What you can do

Choose your own colors

setColors(int resId); // using an array resource
setColors(ArrayList<String> colorsHexList); // using a list of hex colors
setColors(int... colorsList); // use a list of colors Color.RED,Color.Black etc
setDefaultColorButton(int color); // set the colorButton to check by default

Define Listeners

setOnFastChooseColorListener(OnFastChooseColorListener listener); // renamed in version 1.1.0
setOnChooseColorListener(OnChooseColorListener listener);

Add custom buttons

addListenerButton(String text, Button button, OnButtonListener listener); // custom button
addListenerButton(String text, final OnButtonListener listener); // it will generate a button with default style

General methods you can use:

setDialogFullHeight(); // bigger height
dismissDialog(); // dismiss dialog slowly
setColumns(int c); // set columns number
setTitle(String title); // set the title of the dialog
setTitlePadding(int left, int top, int right, int bottom);
disableDefaultButtons(boolean disableDefaultButtons); // use if you want to implement your own buttons

getDialogBaseLayout(); // returns the RelativeLayout used as base for the dialog
getDialogViewLayout(); // returns the view inflated into the dialog
getDialog(); // returns the dialog
getPositiveButton(); // returns the positive button defined by default
getNegativeButton(); // returns the negative button defined by default
setDismissOnButtonListenerClick(boolean dismiss); // renamed in version 1.1.0

ColorButtons changes you can do:

setColorButtonTickColor(int color);  // renamed in version 1.1.0
setColorButtonDrawable(int drawable);
setColorButtonSize(int width, int height);
setColorButtonMargin(int left, int top, int right, int bottom);
setRoundColorButton(boolean roundButton);

Removed from version 1.1.0

setPositiveButton(String text, OnButtonListener listener); // not present from version 1.1.0 
setNegativeButton(String text, OnButtonListener listener); // not present from version 1.1.0

Additional Credits

for the Material Dialog library for button design specs and implementation https://github.com/drakeet/MaterialDialog

License

The MIT License

Copyright (c) 2016 Petrov Kristiyan

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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].