Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ColorPickerPreference for android to create color picker in preferences. Project created as Library

License

Notifications You must be signed in to change notification settings

silvara/android-ColorPickerPreference

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

59 Commits

Repository files navigation

BREAKING

latest year/two I comletely away from android development, so i need someone, who will take care of this library

ColorPickerPreference

Generally used classes by Daniel Nilsson. ColorPickerPreference class by Sergey Margaritov. Packed by Sergey Margaritov.

Features

  • Color Area
  • Hue Slider
  • Alpha Slider (disabled by default)
  • Old & New Color
  • Color Preview in Preferences List

Requirements

Tested with APIv7, but maybe will work with early versions

Usage

You can see some tests inside

<net.margaritov.preference.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 -->
 alphaSlider="true" <!-- enable alpha slider via XML -->
/>

To enable Alpha Slider in your code use function:

setAlphaSliderEnabled(boolean enable)

Screens

About

ColorPickerPreference for android to create color picker in preferences. Project created as Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%

AltStyle によって変換されたページ (->オリジナル) /