public class ShadowViewDrawable
extends android.graphics.drawable.Drawable
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.HONEYCOMB) {
view.setLayerType(View.LAYER_TYPE_SOFTWARE, drawable.getPaint());
}
Author: wangjie
Email: tiantian.china.2@gmail.com
Date: 5/2/15.| 构造器和说明 |
|---|
ShadowViewDrawable(ShadowProperty shadowProperty,
int color,
float rx,
float ry) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
draw(android.graphics.Canvas canvas) |
int |
getOpacity() |
protected void |
onBoundsChange(android.graphics.Rect bounds) |
void |
setAlpha(int alpha) |
ShadowViewDrawable |
setColor(int color) |
void |
setColorFilter(android.graphics.ColorFilter cf) |
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, onLayoutDirectionChanged, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setTint, setTintList, setTintMode, setVisible, unscheduleSelfpublic ShadowViewDrawable(ShadowProperty shadowProperty, int color, float rx, float ry)
protected void onBoundsChange(android.graphics.Rect bounds)
onBoundsChange 在类中 android.graphics.drawable.Drawablepublic void draw(@NonNull
android.graphics.Canvas canvas)
draw 在类中 android.graphics.drawable.Drawablepublic ShadowViewDrawable setColor(int color)
public 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.Drawable