A curated collection of splendid gradients made in Kotlin (port of https://webgradients.com for Android). Only linear gradients included for now.
Add to dependencies in gradle file
implementation 'com.bakhtiyor.gradients:gradients:0.1.0'
view.drawable = Gradients.warmFlame()
You can set drawable shape:
view.drawable = Gradients.warmFlame().apply { shape = OvalShape() }
Implement radial and blended gradients.
Gradients is available under the MIT license.