ScaledDrawableWrapper

public class ScaledDrawableWrapper
extends DrawableWrapperCompat

java.lang.Object
   ↳ android.graphics.drawable.Drawable
     ↳ androidx.appcompat.graphics.drawable.DrawableWrapperCompat
       ↳ com.google.android.material.drawable.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

int getIntrinsicHeight()
int getIntrinsicWidth()

Inherited methods

Public constructors

ScaledDrawableWrapper

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

Parameters
drawable Drawable

width int

height int

Public methods

getIntrinsicHeight

public int getIntrinsicHeight ()

Returns
int

getIntrinsicWidth

public int getIntrinsicWidth ()

Returns
int