DrawableContainer

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

public class DrawableContainer extends Drawable implements Drawable.Callback

DrawableContainer ← Drawable

A drawable that shows one of its children at a time.

Nested types

Extended in the framework by

Constructors

public DrawableContainer() empty body source

Methods

protected void setConstantState(DrawableContainerState state) source
public boolean selectDrawable(int index) source
public Drawable getCurrent() source
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 int getOpacity() source
public boolean isStateful() source
public void jumpToCurrentState() source
protected boolean onStateChange(int[] state) source
protected boolean onLevelChange(int level) source
protected void onBoundsChange(Rect bounds) source
public boolean onLayoutDirectionChanged(int layoutDirection) source
public boolean setVisible(boolean visible, boolean restart) source
public int getIntrinsicWidth() source
public int getIntrinsicHeight() source
public boolean getPadding(Rect padding) source
public Insets getOpticalInsets() source
public void getOutline(Outline outline) source
public void setHotspot(float x, float y) source
public ConstantState getConstantState() source
public void invalidateDrawable(Drawable who) source
public void scheduleDrawable(Drawable who, Runnable what, long when) source
public void unscheduleDrawable(Drawable who, Runnable what) 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.