ScaledDrawableWrapper

public class ScaledDrawableWrapper


An extension of DrawableWrapperCompat that will take a given Drawable and scale it by the specified width and height.

Summary

Public constructors

ScaledDrawableWrapper(Drawable drawable, int width, int height)

Public methods

ConstantState
int
int
Drawable
void
setDrawable(Drawable drawable)

Public constructors

ScaledDrawableWrapper

public ScaledDrawableWrapper(Drawable drawable, int width, int height)

Public methods

getConstantState

public ConstantState getConstantState()

getIntrinsicHeight

public int getIntrinsicHeight()

getIntrinsicWidth

public int getIntrinsicWidth()

mutate

public Drawable mutate()

setDrawable

public void setDrawable(Drawable drawable)