public class MaterialProgressDrawable
extends android.graphics.drawable.Drawable
implements android.graphics.drawable.Animatable
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
MaterialProgressDrawable.ProgressDrawableSize |
| 构造器和说明 |
|---|
MaterialProgressDrawable(android.content.Context context,
android.view.View parent) |
| 限定符和类型 | 方法和说明 |
|---|---|
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, getHotspotBounds, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getOutline, getPadding, getState, getTransparentRegion, inflate, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isStateful, isVisible, jumpToCurrentState, mutate, onBoundsChange, onLayoutDirectionChanged, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setTint, setTintList, setTintMode, setVisible, unscheduleSelfpublic MaterialProgressDrawable(android.content.Context context,
android.view.View parent)
public void updateSizes(int size)
size - One of { MaterialProgressDrawable.LARGE} or
{MaterialProgressDrawable.DEFAULT}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 在类中 android.graphics.drawable.Drawablepublic int getIntrinsicWidth()
getIntrinsicWidth 在类中 android.graphics.drawable.Drawablepublic void draw(android.graphics.Canvas c)
draw 在类中 android.graphics.drawable.Drawablepublic void setAlpha(int alpha)
setAlpha 在类中 android.graphics.drawable.Drawablepublic int getAlpha()
getAlpha 在类中 android.graphics.drawable.Drawablepublic void setColorFilter(android.graphics.ColorFilter colorFilter)
setColorFilter 在类中 android.graphics.drawable.Drawablepublic int getOpacity()
getOpacity 在类中 android.graphics.drawable.Drawablepublic boolean isRunning()
isRunning 在接口中 android.graphics.drawable.Animatablepublic void start()
start 在接口中 android.graphics.drawable.Animatablepublic void stop()
stop 在接口中 android.graphics.drawable.Animatable