Easel

Additional

Language
Kotlin
Version
2.1.0 (Nov 8, 2016)
Created
Jul 29, 2015
Updated
Dec 15, 2018
Owner
Commit 451 (Commit451)
Contributors
John Carlson (Jawnnypoo)
Kosh Sergani (k0shk0sh)
2
Activity
Badge
Generate
Download
Source code
APK file

Promotion

Easel

Tint and color Android views with ease

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 2018 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.