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).
public static final int HORIZONTAL = 1 sourcepublic static final int VERTICAL = 2 sourcepublic ClipDrawable(Drawable drawable, int gravity, int orientation) sourceprotected boolean onLevelChange(int level) sourcepublic int getOpacity() sourcepublic void draw(Canvas canvas) 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.