-
- All Implemented Interfaces:
-
com.backbase.deferredresources.DeferredDrawable
public final class DeferredDrawable.Attribute implements DeferredDrawable
A wrapper for a Drawable. Optionally mutates each resolved Drawable. Optionally provide transformations (such as Drawable.setTint) to apply each time the Drawable is resolved.
If transformations are supplied, mutate should be true.
-
-
Constructor Summary
Constructors Constructor Description DeferredDrawable.Attribute(Integer resId, Function2<Drawable, Context, Unit> transformations)Convenience constructor that sets mutate to true when transformations are supplied. DeferredDrawable.Attribute(Integer resId, Boolean mutate, Function2<Drawable, Context, Unit> transformations)DeferredDrawable.Attribute(Integer resId, Boolean mutate)DeferredDrawable.Attribute(Integer resId)
-
Method Summary
-
-
Constructor Detail
-
DeferredDrawable.Attribute
DeferredDrawable.Attribute(Integer resId, Function2<Drawable, Context, Unit> transformations)
Convenience constructor that sets mutate to true when transformations are supplied.
-
DeferredDrawable.Attribute
DeferredDrawable.Attribute(Integer resId, Boolean mutate, Function2<Drawable, Context, Unit> transformations)
-
DeferredDrawable.Attribute
DeferredDrawable.Attribute(Integer resId)
-
-
-
-