ScaleDrawable

Class of android.graphics.drawable · ScaleDrawable.java · Android's reference

public class ScaleDrawable extends DrawableWrapper

ScaleDrawable ← DrawableWrapper ← Drawable

A drawable shrunk inside its bounds by its level (0 to 10000), toward its gravity.

Constructors

public ScaleDrawable(Drawable drawable, int gravity, float scaleWidth, float scaleHeight) source

Methods

public Drawable getDrawable() source
public void draw(Canvas canvas) source
public int getOpacity() source
protected boolean onLevelChange(int level) source
protected void onBoundsChange(Rect bounds) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.