ClipDrawable

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

public class ClipDrawable extends DrawableWrapper

ClipDrawable ← DrawableWrapper ← Drawable

A drawable clipped to a part of its bounds, by its level (0 to 10000).

Fields

public static final int HORIZONTAL = 1 source
public static final int VERTICAL = 2 source

Constructors

public ClipDrawable(Drawable drawable, int gravity, int orientation) source

Methods

protected boolean onLevelChange(int level) source
public int getOpacity() source
public void draw(Canvas canvas) 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.