public class MaterialProgressDrawable
extends android.graphics.drawable.Drawable
implements android.graphics.drawable.Animatable
android.support.v4.widget.
I've done some slight changes.| Constructor and Description |
|---|
MaterialProgressDrawable(android.content.Context context,
android.view.View parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(android.graphics.Canvas c) |
int |
getAlpha() |
int |
getIntrinsicHeight() |
int |
getIntrinsicWidth() |
int |
getOpacity() |
boolean |
isRunning() |
void |
setAlpha(int alpha) |
void |
setArrowScale(float scale) |
void |
setBackgroundColor(int color)
Update the background color of the circle image view.
|
void |
setColorFilter(android.graphics.ColorFilter colorFilter) |
void |
setColorSchemeColors(int... colors)
Set the colors used in the progress animation from color resources.
|
void |
setProgressRotation(float rotation)
Set the amount of rotation to apply to the progress spinner.
|
void |
setStartEndTrim(float startAngle,
float endAngle)
Set the start and end trim for the progress spinner arc.
|
void |
showArrow(boolean show) |
void |
start() |
void |
stop() |
void |
updateSizes(int size)
Set the overall size for the progress spinner.
|
applyTheme, canApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getBounds, getCallback, getChangingConfigurations, getColorFilter, getConstantState, getCurrent, getDirtyBounds, getLevel, getMinimumHeight, getMinimumWidth, getOutline, getPadding, getState, getTransparentRegion, inflate, inflate, invalidateSelf, isAutoMirrored, isStateful, isVisible, jumpToCurrentState, mutate, onBoundsChange, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLevel, setState, setTint, setTintList, setTintMode, setVisible, unscheduleSelfpublic static final int LARGE
public static final int DEFAULT
public MaterialProgressDrawable(android.content.Context context,
android.view.View parent)
public void updateSizes(int size)
public void showArrow(boolean show)
show - Set to true to display the arrowhead on the progress spinner.public void setArrowScale(float scale)
scale - Set the scale of the arrowhead for the spinner.public void setStartEndTrim(float startAngle,
float endAngle)
startAngle - start angleendAngle - end anglepublic void setProgressRotation(float rotation)
rotation - Rotation is from [0..1]public void setBackgroundColor(int color)
public void setColorSchemeColors(int... colors)
colors - public int getIntrinsicHeight()
getIntrinsicHeight in class android.graphics.drawable.Drawablepublic int getIntrinsicWidth()
getIntrinsicWidth in class android.graphics.drawable.Drawablepublic void draw(android.graphics.Canvas c)
draw in class android.graphics.drawable.Drawablepublic int getAlpha()
getAlpha in class android.graphics.drawable.Drawablepublic void setAlpha(int alpha)
setAlpha in class android.graphics.drawable.Drawablepublic void setColorFilter(android.graphics.ColorFilter colorFilter)
setColorFilter in class android.graphics.drawable.Drawablepublic int getOpacity()
getOpacity in class android.graphics.drawable.Drawablepublic boolean isRunning()
isRunning in interface android.graphics.drawable.Animatablepublic void start()
start in interface android.graphics.drawable.Animatablepublic void stop()
stop in interface android.graphics.drawable.Animatable