ScaledDrawableWrapper


Kotlin |Java

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)

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026年05月14日 UTC.