Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

android-ColorPickerPreference

> 编程语言
Open source

ColorPickerPreference for android to create color picker in preferences. Project created as Library

708 stars0 likes0 views
WebsiteGitHub

About

ColorPickerPreference for android to create color picker in preferences. Project created as Library

===================== ColorPickerPreference

Generally used classes by Daniel Nilsson. ColorPickerPreference class by Sergey Margaritov. Packed by Sergey Margaritov. Packed again and made Gradle compatible by Vincent Fischer.

Features

  • Color Area
  • Hue Slider
  • Alpha Slider (disabled by default)
  • Old & New Color
  • Color Preview in Preferences List

Requirements

Tested with APIv7, but maybe will work with early versions

Installation

Through Gradle

You can now install this through Gradle with a simple: ::

implementation 'net.margaritov.preference.colorpicker.ColorPickerPreference:ColorPickerPreference:1.0.0'

Android Studio

  1. Paste or clone this library into the /libs folder, in the root directory of your project. Create a new folder: /libs if not already present. (This step is not required - only for keeping cleaner project structure)

  2. Edit settings.gradle by adding the library. You have also define a project directory for the library. Your settings.gradle should look like below: ::

    include ':app', ':ColorPickerPreference' project(':ColorPickerPreference').projectDir = new File('app/libs/ColorPickerPreference')

  3. In app/build.gradle add the ColorPickerPreference library as a dependency: ::

    dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:21.0.3' implementation project(":ColorPickerPreference") }

  4. Sync project, clean and build. You can use the ColorPickerPreference library as part of your project now.

Eclipse

  1. Before you can add a ColorPickerPreference to your application, you must first add a library reference:
  2. Clone or download a copy of the library
  3. Import the library into Eclipse: File menu -> Import -> Existing Project into Workspace
  4. Open your application's project properties and add a library reference to ColorPickerPreference

Usage

You can see some tests inside

::

To enable Alpha Slider in your code use function: :: setAlphaSliderEnabled(boolean enable)

Screens

  • .. image:: https://github.com/C0br4/ColorPickerPreference/raw/master/screen_1.png

  • .. image:: https://github.com/C0br4/ColorPickerPreference/raw/master/screen_2.png

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Javaandroidandroid-libraryandroid-preferencecolor-picker

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言