ColorArrayAttrGradientDrawableResolver

data class ColorArrayAttrGradientDrawableResolver(@AttrRes gradientColorArrayAttrId: Int, orientation: GradientDrawable.Orientation) : DrawableResolver

A DrawableResolver that retrieves a color array from a theme using gradientColorArrayAttrId and creates a GradientDrawable from it. The gradient will have a linear shape with the given orientation.

Constructors

Link copied to clipboard
fun ColorArrayAttrGradientDrawableResolver(@AttrRes gradientColorArrayAttrId: Int, orientation: GradientDrawable.Orientation)

Functions

Link copied to clipboard
open override fun get(context: Context): Drawable

Resolves a Drawable based on the given Context. The resulting value may differ per Context. E.g. due to differing device screen densities.

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)