AttrColorResolver

data class AttrColorResolver(@AttrRes attrId: Int) : ColorResolver

A ColorResolver that resolves a color Int from a theme based on attrId.

Constructors

Link copied to clipboard
fun AttrColorResolver(@AttrRes attrId: Int)

Functions

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

Resolves a color Int based on the given context. The resulting value may differ per Context. E.g. due to differing themes.

Inherited functions

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