LoadingIndicatorDrawable

public final class LoadingIndicatorDrawable


This class draws the graphics for a loading indicator.

Summary

Public fields

int

Public methods

static LoadingIndicatorDrawable
create(Context context, LoadingIndicatorSpec specs)
void
draw(Canvas canvas)
int
int
int
int
void
invalidateDrawable(Drawable drawable)
void
scheduleDrawable(Drawable who, Runnable what, long when)
void
setAlpha(int alpha)
void
setColorFilter(ColorFilter colorFilter)
boolean
setVisible(boolean visible, boolean restart)
boolean
setVisible(boolean visible, boolean restart, boolean animate)

Changes the visibility with/without triggering the animation callbacks.

void
unscheduleDrawable(Drawable who, Runnable what)

Public fields

alpha

public int alpha

Public methods

create

public static LoadingIndicatorDrawable create(Context context, LoadingIndicatorSpec specs)

draw

public void draw(Canvas canvas)

getAlpha

public int getAlpha()

getIntrinsicHeight

public int getIntrinsicHeight()

getIntrinsicWidth

public int getIntrinsicWidth()

getOpacity

public int getOpacity()

invalidateDrawable

public void invalidateDrawable(Drawable drawable)

scheduleDrawable

public void scheduleDrawable(Drawable who, Runnable what, long when)

setAlpha

public void setAlpha(int alpha)

setColorFilter

public void setColorFilter(ColorFilter colorFilter)

setVisible

public boolean setVisible(boolean visible, boolean restart)

setVisible

public boolean setVisible(boolean visible, boolean restart, boolean animate)

Changes the visibility with/without triggering the animation callbacks.

Parameters
boolean visible

Whether to make the drawable visible.

boolean restart

Whether to force starting the animation from the beginning.

boolean animate

Whether to change the visibility with animation.

Returns
boolean

true, if the visibility changes or will change after the animation; false, otherwise.

See also
setVisible

unscheduleDrawable

public void unscheduleDrawable(Drawable who, Runnable what)