Spectrum

Additional

Language
Java
Version
v0.7.1 (Dec 23, 2016)
Created
Mar 29, 2016
Updated
Aug 8, 2019 (Retired)
Owner
The Blue Alliance (the-blue-alliance)
Contributors
Francois Campbell (francoiscampbell)
Nathan Walters (nwalters512)
Daniel Morales (GrenderG)
Michael Möbius (RocketRider)
Rab Ross (rabross)
Victor Hurdugaci (victorhurdugaci)
6
Activity
Badge
Generate
Download
Source code

Spectrum

Spectrum is an Android library that makes it easy to let your user pick from a list of colors.

Download

Download with Gradle:

compile 'com.thebluealliance:spectrum:0.7.1'

The library is hosted on both Bintray (JCenter) and Maven Central; use whichever you prefer.

repositories {
  jcenter()
}

Features

  • SpectrumDialog with Builder pattern
  • SpectrumPreference for easily adding color selection to your app's preferences
    • Can be added either in XML or programatically
  • SpectrumPreferenceCompat for use with the preference support library
  • SpectrumPalette for 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 bintray.user, bintray.apikey, and bintray.gpg.password.

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.

./gradlew install
./gradlew 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.

Developers