Spectrum

A color selection library for Android

License

License

GroupId

GroupId

com.thebluealliance
ArtifactId

ArtifactId

spectrum
Last Version

Last Version

0.7.1
Release Date

Release Date

Type

Type

aar
Description

Description

Spectrum
A color selection library for Android
Project URL

Project URL

https://github.com/the-blue-alliance/spectrum/
Source Code Management

Source Code Management

https://github.com/the-blue-alliance/spectrum/

Download spectrum

How to add to project

<!-- https://jarcasting.com/artifacts/com.thebluealliance/spectrum/ -->
<dependency>
    <groupId>com.thebluealliance</groupId>
    <artifactId>spectrum</artifactId>
    <version>0.7.1</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.thebluealliance/spectrum/
implementation 'com.thebluealliance:spectrum:0.7.1'
// https://jarcasting.com/artifacts/com.thebluealliance/spectrum/
implementation ("com.thebluealliance:spectrum:0.7.1")
'com.thebluealliance:spectrum:aar:0.7.1'
<dependency org="com.thebluealliance" name="spectrum" rev="0.7.1">
  <artifact name="spectrum" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.thebluealliance', module='spectrum', version='0.7.1')
)
libraryDependencies += "com.thebluealliance" % "spectrum" % "0.7.1"
[com.thebluealliance/spectrum "0.7.1"]

Dependencies

compile (5)

Group / Artifact Type Version
com.android.support » support-v4 jar 23.4.0
com.android.support » appcompat-v7 jar 23.4.0
com.android.support » preference-v7 jar 23.4.0
com.android.support » support-annotations jar 23.4.0
org.greenrobot : eventbus jar 3.0.0

Project Modules

There are no modules declared in this project.

Spectrum

Bintray Maven Central Android Arsenal

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

com.thebluealliance

The Blue Alliance

FIRST Robotics tool to help teams scout for, compete at, and relive competitions.

Versions

Version
0.7.1
0.7.0
0.6.0
0.5.0
0.4.2
0.4.0
0.3.0
0.2.2
0.2.1
0.2.0
0.1.1