public class LinearProgressDrawable
extends android.graphics.drawable.Drawable
implements android.graphics.drawable.Animatable
| Modifier and Type | Class and Description |
|---|---|
static class |
LinearProgressDrawable.Builder |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGN_BOTTOM |
static int |
ALIGN_CENTER |
static int |
ALIGN_TOP |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(android.graphics.Canvas canvas) |
int |
getOpacity() |
float |
getProgress() |
int |
getProgressMode() |
float |
getSecondaryProgress() |
boolean |
isRunning() |
void |
scheduleSelf(java.lang.Runnable what,
long when) |
void |
setAlpha(int alpha) |
void |
setColorFilter(android.graphics.ColorFilter cf) |
void |
setProgress(float percent) |
void |
setSecondaryProgress(float percent) |
void |
start() |
void |
stop() |
applyTheme, canApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getAlpha, getBounds, getCallback, getChangingConfigurations, getColorFilter, getConstantState, getCurrent, getDirtyBounds, getIntrinsicHeight, getIntrinsicWidth, getLevel, getMinimumHeight, getMinimumWidth, getOutline, getPadding, getState, getTransparentRegion, inflate, inflate, invalidateSelf, isAutoMirrored, isStateful, isVisible, jumpToCurrentState, mutate, onBoundsChange, onLevelChange, onStateChange, resolveOpacity, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLevel, setState, setTint, setTintList, setTintMode, setVisible, unscheduleSelfpublic static final int ALIGN_TOP
public static final int ALIGN_CENTER
public static final int ALIGN_BOTTOM
public void draw(android.graphics.Canvas canvas)
draw in class android.graphics.drawable.Drawablepublic void setAlpha(int alpha)
setAlpha in class android.graphics.drawable.Drawablepublic void setColorFilter(android.graphics.ColorFilter cf)
setColorFilter in class android.graphics.drawable.Drawablepublic int getOpacity()
getOpacity in class android.graphics.drawable.Drawablepublic int getProgressMode()
public float getProgress()
public float getSecondaryProgress()
public void setProgress(float percent)
public void setSecondaryProgress(float percent)
public void start()
start in interface android.graphics.drawable.Animatablepublic void stop()
stop in interface android.graphics.drawable.Animatablepublic boolean isRunning()
isRunning in interface android.graphics.drawable.Animatablepublic void scheduleSelf(java.lang.Runnable what,
long when)
scheduleSelf in class android.graphics.drawable.Drawable