AttrDrawableResolver

data class AttrDrawableResolver(@AttrRes attrId: Int) : DrawableResolver

A DrawableResolver that resolves a Drawable from a theme based on attrId.

Constructors

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

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)