NinePatchDrawable

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

public class NinePatchDrawable extends Drawable

NinePatchDrawable ← Drawable

A nine-patch image stretched to its bounds, with the padding of its chunk.

Constructors

public NinePatchDrawable(Bitmap bitmap, byte[] chunk, Rect padding, String srcName) source
public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk, Rect padding, String srcName) source
public NinePatchDrawable(NinePatch patch) source
public NinePatchDrawable(Resources res, NinePatch patch) source

Methods

public void draw(Canvas canvas) source
public void setAlpha(int alpha) source
public int getAlpha() source
public void setColorFilter(ColorFilter colorFilter) source
public ColorFilter getColorFilter() source
public Paint getPaint() source
public int getOpacity() source
public int getIntrinsicWidth() source
public int getIntrinsicHeight() source
public boolean getPadding(Rect out) 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.