-
- All Implemented Interfaces:
-
com.backbase.deferredresources.DeferredDrawable
public final class DeferredDrawable.Resource 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.Resource(Integer resId, Function2<Drawable, Context, Unit> transformations)Convenience constructor that sets mutate to true when transformations are supplied. DeferredDrawable.Resource(Integer resId, Boolean mutate, Function2<Drawable, Context, Unit> transformations)DeferredDrawable.Resource(Integer resId, Boolean mutate)DeferredDrawable.Resource(Integer resId)
-
Method Summary
-
-
Constructor Detail
-
DeferredDrawable.Resource
DeferredDrawable.Resource(Integer resId, Function2<Drawable, Context, Unit> transformations)
Convenience constructor that sets mutate to true when transformations are supplied.
-
DeferredDrawable.Resource
DeferredDrawable.Resource(Integer resId, Boolean mutate, Function2<Drawable, Context, Unit> transformations)
-
DeferredDrawable.Resource
DeferredDrawable.Resource(Integer resId)
-
-
-
-