An easy to use android color picker library. Based on android-colorpicker.
Grab via gradle
dependencies {
compile 'org.xdty.preference:color-picker:0.0.4'
}
or maven
<dependency>
<groupId>org.xdty.preference</groupId>
<artifactId>color-picker</artifactId>
<version>0.0.4</version>
<type>aar</type>
</dependency>
or JAR from maven central
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"
android:defaultValue="@color/flamingo"/>