ComplexColorCompat

Represents a color which is one of either:

  1. A Gradient; as represented by a Shader.
  2. A ColorStateList
  3. A simple color represented by an int

Functions

Link copied to clipboard
open fun getColor(): Int
Link copied to clipboard
Link copied to clipboard
Creates a ComplexColorCompat from an XML document using given a set of Resources and a Resources.Theme.
Link copied to clipboard
open fun isGradient(): Boolean
Link copied to clipboard
open fun isStateful(): Boolean
Link copied to clipboard
open fun onStateChanged(stateSet: Array<Int>): Boolean
Link copied to clipboard
open fun setColor(@ColorInt color: Int)
Link copied to clipboard
open fun willDraw(): Boolean