LayerDrawableResolver

A DrawableResolver that creates a Drawable from a list of DrawableResolvers by layering them.

Parameters

layers

The drawables to layer. These are drawn in the list's order, so the element with the largest index will be drawn on top.

Constructors

Link copied to clipboard
constructor(vararg layers: DrawableResolver)

Behaves the same as the primary DrawableResolver constructor, except that no list has to be created.

constructor(layers: List<DrawableResolver>)

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)