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.
public ScaleDrawable(Drawable drawable, int gravity, float scaleWidth, float scaleHeight) sourcepublic Drawable getDrawable() sourcepublic void draw(Canvas canvas) sourcepublic int getOpacity() sourceprotected boolean onLevelChange(int level) sourceprotected void onBoundsChange(Rect bounds) sourceMade 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.