public class BroccoliGradientDrawable
extends android.graphics.drawable.ShapeDrawable
| 构造器和说明 |
|---|
BroccoliGradientDrawable(int color,
int highlightColor,
float radius,
int duration,
android.animation.TimeInterpolator timeInterpolator)
Construct a rectangle drawable.
|
BroccoliGradientDrawable(int color,
int highlightColor,
int duration,
android.animation.TimeInterpolator timeInterpolator)
Construct an oval drawable.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
attachedView(android.view.View view)
Attach the view to this drawable.
|
void |
cancelAnimation()
Cancel the gradient animation.
|
void |
draw(android.graphics.Canvas canvas) |
applyTheme, getAlpha, getChangingConfigurations, getConstantState, getIntrinsicHeight, getIntrinsicWidth, getOpacity, getOutline, getPadding, getPaint, getShaderFactory, getShape, inflate, inflateTag, isStateful, mutate, onBoundsChange, onDraw, onStateChange, setAlpha, setColorFilter, setDither, setIntrinsicHeight, setIntrinsicWidth, setPadding, setPadding, setShaderFactory, setShape, setTintList, setTintModecanApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getBounds, getCallback, getColorFilter, getCurrent, getDirtyBounds, getHotspotBounds, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getState, getTransparentRegion, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isVisible, jumpToCurrentState, onLayoutDirectionChanged, onLevelChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setTint, setVisible, unscheduleSelfpublic BroccoliGradientDrawable(int color,
int highlightColor,
float radius,
int duration,
android.animation.TimeInterpolator timeInterpolator)
color - The color used to fill the shape.highlightColor - The color of gradient animation.radius - The radius in pixels of the corners of the rectangle shape.duration - The duration of the gradient animation.timeInterpolator - The interpolator of the gradient animation.public BroccoliGradientDrawable(int color,
int highlightColor,
int duration,
android.animation.TimeInterpolator timeInterpolator)
color - The color used to fill the shape.highlightColor - The color of gradient animation.duration - The duration of the gradient animation.timeInterpolator - The interpolator of the gradient animation.public void draw(android.graphics.Canvas canvas)
draw 在类中 android.graphics.drawable.ShapeDrawableprotected void attachedView(android.view.View view)
view - The view which use this drawable.public void cancelAnimation()