Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 1.79 KB

README.md

File metadata and controls

53 lines (41 loc) · 1.79 KB

ColorPicker

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

Android Arsenal Build Status JAR Download

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

screenshot