rainbow / com.skydoves.rainbow

Package com.skydoves.rainbow

Types

BinaryRainbowView

BinaryRainbowView represents gradation effect using three colors.

class BinaryRainbowView : View

ContextColor

ContextColor is a data class for wrapping color value.

class ContextColor

Rainbow

An easy way to apply gradations and tinting for Android.

class Rainbow

RainbowOrientation

RainbowOrientation is the orientation attribute for expressing gradation.

enum class RainbowOrientation

RainbowView

RainbowView represents gradation effect using colors.

open class RainbowView : View

Annotations

Dp

Denotes that an integer parameter, field or method return value is expected to represent a device independent pixel dimension.

annotation class Dp

RainbowDsl

annotation class RainbowDsl

Extensions for External Classes

android.view.View

kotlin.collections.List

kotlin.IntArray

Functions

color

creates an instance of ContextColor using a color value.

fun Rainbow.color(color: Int): ContextColor

colorArray

creates a list of ContextColor using a color array.

fun Rainbow.colorArray(colors: IntArray): List<ContextColor>

colorList

creates a list of ContextColor using a color list.

fun Rainbow.colorList(colors: List<Int>): List<ContextColor>

contextColor

creates an instance of ContextColor using a resource color value.

fun Rainbow.contextColor(color: Int): ContextColor