ColorPicker

Additional

Language
Java
Version
v0.0.4 (Jan 6, 2016)
Created
Dec 29, 2015
Updated
Mar 24, 2017 (Retired)
Owner
tianyu (xdtianyu)
Contributors
tianyu (xdtianyu)
Mikel Calvo (MikelCalvo)
2
Activity
Badge
Generate
Download
Source code

ColorPicker

An easy to use android color picker library. Based on android-colorpicker.

Download

Grab via gradle

dependencies {
    compile 'org.xdty.preference:color-picker:0.0.5'
}

or maven

<dependency>
  <groupId>org.xdty.preference</groupId>
  <artifactId>color-picker</artifactId>
  <version>0.0.5</version>
  <type>aar</type>
</dependency>

or JAR from maven central

Usage

For more details, see example

    <org.xdty.preference.ColorPreference
        android:key="example_color"
        android:title="Color"
        android:summary="This is a color preference"
        tools:dialogTitle="@string/default_color"
        tools:colors="@array/default_rainbow"
        tools:columns="5"
        tools:material="true"
        tools:backwardsOrder="true"
        tools:strokeWidth="0"
        tools:strokeColor="@android:color/black"
        android:defaultValue="@color/flamingo"/>

ScreenShot