Tint and color Android views with ease
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
easel
gradle/wrapper
.gitignore
.travis.yml
LICENSE.txt
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

Easel

Tint and color Android views with ease

Build Status

Gradle Dependency

Add the jitpack url to the project:

allprojects {
    repositories {
        ...
        maven { url "https://jitpack.io" }
    }
}

then, in your app build.gradle

dependencies {
    implementation "com.github.Commit451:Easel:latest.version.here"
}

Usage

See sample project for clear usage. Mostly looks like this:

checkbox.tint(color)

Supported Views

Currently, you can tint the following views at run time:

  • Button
  • Checkbox
  • EditText
  • ProgressBar
  • RadioButton
  • SeekBar
  • Spinner
  • SwitchCompat
  • TextView

In addition, you can also tint other things which are somewhat difficult to tint in Android, such as:

  • TextView cursor
  • TextView handles
  • TextView selection highlight
  • MenuItem
  • Toolbar overflow
  • View Edge effect (on scroll)

Thanks

Props to the project Material Dialogs where a lot of the tinting code came from.

License

Copyright 2015 Commit 451

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.