Spectrum is an Android library that makes it easy to let your user pick from a list of colors.
Download with Gradle:
The library is hosted on both Bintray (JCenter) and Maven Central; use whichever you prefer.
SpectrumDialogwith Builder pattern
SpectrumPreferencefor easily adding color selection to your app's preferences
- Can be added either in XML or programatically
SpectrumPreferenceCompatfor use with the preference support library
SpectrumPalettefor integrating a color selection view into any part of your app
Deploying to Bintray
First, make sure the project's information is configured correctly in the
ext block in
spectrum/build.gradle. Next, put your Bintray information in your
local.properties file; you will need to define
To deploy the artifacts, run the following commands. The first is a dry run to make sure the artifacts can be built correctly. The second actually deploys to Bintray.
For a more thorough introduction on how to distribute libraries through jCenter and Maven Central, please see http://inthecheesefactory.com/blog/how-to-upload-library-to-jcenter-maven-central-as-dependency/en.
- Nathan Walters (@nwalters512)