An easy to use android color picker library. Based on android-colorpicker.
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
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"/>