Skip to content
A curated collection of splendid gradients made in Kotlin
Branch: master
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
gradients
gradle
misc
scripts
.gitignore
LICENSE
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

Gradients

A curated collection of splendid gradients made in Kotlin (port of https://webgradients.com for Android). Only linear gradients included for now.

Sample app

Screenshot1

Installation

Add to dependencies in gradle file

implementation 'com.bakhtiyor.gradients:gradients:0.1.0'

How To Use

view.drawable = Gradients.warmFlame()

You can set drawable shape:

view.drawable = Gradients.warmFlame().apply { shape = OvalShape() }

TODO

Implement radial and blended gradients.

Gredits

License

Gradients is available under the MIT license.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.