public class PathsDrawable
extends android.graphics.drawable.Drawable
| 限定符和类型 | 字段和说明 |
|---|---|
protected static android.graphics.Region |
MAX_CLIP |
protected java.util.List<java.lang.Integer> |
mColors |
protected int |
mHeight |
protected int |
mOrginHeight |
protected java.util.List<android.graphics.Path> |
mOrginPaths |
protected java.util.List<java.lang.String> |
mOrginSvgs |
protected int |
mOrginWidth |
protected android.graphics.Paint |
mPaint |
protected java.util.List<android.graphics.Path> |
mPaths |
protected int |
mStartX |
protected int |
mStartY |
protected int |
mWidth |
protected static android.graphics.Region |
REGION |
| 构造器和说明 |
|---|
PathsDrawable() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
canReuseBitmap(int width,
int height) |
boolean |
canReuseCache() |
void |
createCachedBitmapIfNeeded(int width,
int height) |
void |
draw(android.graphics.Canvas canvas) |
int |
getOpacity() |
android.graphics.Paint |
getPaint() |
int |
height() |
protected void |
onMeasure() |
void |
parserColors(int... colors) |
void |
parserPaths(java.lang.String... paths) |
void |
setAlpha(int alpha) |
void |
setBounds(int left,
int top,
int right,
int bottom) |
void |
setBounds(android.graphics.Rect bounds) |
void |
setColorFilter(android.graphics.ColorFilter cf) |
void |
setGeometricHeight(int height) |
void |
setGeometricWidth(int width) |
void |
updateCachedBitmap(int width,
int height) |
void |
updateCacheStates() |
int |
width() |
applyTheme, canApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getAlpha, getBounds, getCallback, getChangingConfigurations, getColorFilter, getConstantState, getCurrent, getDirtyBounds, getHotspotBounds, getIntrinsicHeight, getIntrinsicWidth, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getOutline, getPadding, getState, getTransparentRegion, inflate, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isStateful, isVisible, jumpToCurrentState, mutate, onBoundsChange, onLayoutDirectionChanged, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setAutoMirrored, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setTint, setTintList, setTintMode, setVisible, unscheduleSelfprotected android.graphics.Paint mPaint
protected java.util.List<android.graphics.Path> mPaths
protected java.util.List<java.lang.Integer> mColors
protected int mWidth
protected int mHeight
protected int mStartX
protected int mStartY
protected int mOrginWidth
protected int mOrginHeight
protected static final android.graphics.Region REGION
protected static final android.graphics.Region MAX_CLIP
protected java.util.List<android.graphics.Path> mOrginPaths
protected java.util.List<java.lang.String> mOrginSvgs
protected void onMeasure()
public void setBounds(int left,
int top,
int right,
int bottom)
setBounds 在类中 android.graphics.drawable.Drawablepublic void setBounds(@NonNull
android.graphics.Rect bounds)
setBounds 在类中 android.graphics.drawable.Drawablepublic void parserPaths(java.lang.String... paths)
public void parserColors(int... colors)
public void draw(@NonNull
android.graphics.Canvas canvas)
draw 在类中 android.graphics.drawable.Drawablepublic void setAlpha(int alpha)
setAlpha 在类中 android.graphics.drawable.Drawablepublic void setColorFilter(android.graphics.ColorFilter cf)
setColorFilter 在类中 android.graphics.drawable.Drawablepublic int getOpacity()
getOpacity 在类中 android.graphics.drawable.Drawablepublic int width()
public int height()
public void setGeometricWidth(int width)
public void setGeometricHeight(int height)
public android.graphics.Paint getPaint()
public void updateCachedBitmap(int width,
int height)
public void createCachedBitmapIfNeeded(int width,
int height)
public boolean canReuseBitmap(int width,
int height)
public boolean canReuseCache()
public void updateCacheStates()