- Version modified by Krowne.
- ColorPickerPreference class by Sergey Margaritov.
- Color Area
- Hue Slider
- Alpha Slider (disabled by default)
- Old & New Color
- Color Preview in Preferences List
- Add hex color.
- Color in new format (circle).
- Color activation checkbox (customized)
- Tested with APIv7, but maybe will work with early versions
- This new version works on Android Studio.
You can see some tests inside: ::
<com.krowne.lib.colorpicker.ColorPickerPreference
android:key="color1"
android:title="@string/color1_title"
android:summary="@string/color1_summary"
android:defaultValue="@color/pumpkin_orange" <!-- Integer resources are also accepted -->
showCheckBox="true" <!-- Enable color via Checkbox -->
alphaSlider="true" <!-- Enable Alpha slider via XML -->
/>
To enable Alpha Slider in your code use function: ::
setAlphaSliderEnabled(boolean enable)