public final class DrawableReference extends ReferenceLifecycle<Drawable>
Drawable
used in all the cases where it's not
possible/desirable to use a real Reference. This will simply keep a reference to the Drawable
in the Props and return it. Please take care when using this. It keeps the drawable in memory
all the time and should only be used when the other built in specs are not applicable and
it's not possible to write a custom ReferenceSpecModifier and Type | Class and Description |
---|---|
static class |
DrawableReference.PropsBuilder |
Modifier and Type | Method and Description |
---|---|
static DrawableReference.PropsBuilder |
create() |
static DrawableReference |
get() |
protected Drawable |
onAcquire(ComponentContext context,
Reference reference) |
acquireDiff, onRelease, releaseDiff, shouldReferenceUpdate, shouldUpdate
public static DrawableReference get()
public static DrawableReference.PropsBuilder create()
protected Drawable onAcquire(ComponentContext context, Reference reference)
onAcquire
in class ReferenceLifecycle<Drawable>