Code Monkey home page Code Monkey logo

spectrum's Introduction

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:

implementation 'com.alexeypertcev:spectrum:0.7.1-fork'
implementation 'org.greenrobot:eventbus:3.0.0'

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.