Skydoves Rainbow Versions Save

🌈 Fluent syntactic sugar of Android for applying gradations, shading, and tinting.

1.0.4

3 years ago

πŸŽ‰ Released a new version 1.0.4! πŸŽ‰

What's New?

  • Added a new function shade() for applying gradations on TextViews using Rainbow class.

Shade

We can shade gradations on a TextView using the Rainbow class.

textView.rainbow().palette {
  +contextColor(R.color.colorPrimary)
  +contextColor(R.color.md_orange_100)
  +contextColor(R.color.md_yellow_100)
  +contextColor(R.color.md_green_200)
  +contextColor(R.color.md_blue_200)
  +contextColor(R.color.md_purple_100)
}.shade()

Also, we can apply a color array using an array resource in our XML.

textView.rainbow().palette {
  +colorArray(R.array.rainbow)
}.shade()

Here is a Java way.

new Rainbow(textView)
  .addContextColor(R.color.md_red_400)
  .addContextColor(R.color.md_yellow_100)
  .addContextColor(R.color.md_green_100)
  .addContextColor(R.color.md_blue_100)
  .addContextColor(R.color.white)
  .shade();

1.0.3

3 years ago

πŸŽ‰ Released a new version 1.0.3! πŸŽ‰

What's New?

  • Updated compile SDK version to 30
  • Updated kotlin version to 1.4.10 stable internally.
  • Removed unused internal resources and dependencies internally.

1.0.2

3 years ago

πŸŽ‰ Released version 1.0.2! πŸŽ‰

What's New?

  • Added withElevation(Float) functionality for giving a shadowing effect on view.
  • Removed experimental annotation on inline class internally.

1.0.1

4 years ago

Released version 1.0.1.

  • We can apply gradations using View.rainbow() extension directly.
cardView0.rainbow().palette {
   +contextColor(R.color.skyBlue)
   +contextColor(R.color.colorPrimary)
}.background(orientation = RainbowOrientation.TOP_BOTTOM, radius = 8)

1.0.0

4 years ago

πŸŽ‰πŸŽ‰Published first version 1.0.0.πŸŽ‰πŸŽ‰