public class BalloonMarkerDrawable extends StatePaintDrawable implements Animatable
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
BalloonMarkerDrawable.MarkerAnimationListener
A listener interface to porpagate animation events
This is the "poor's man" AnimatorListener for this Drawable
|
Drawable.Callback, Drawable.ConstantStatemPaintANIMATION_DURATION, FRAME_DURATION| 构造器和说明 |
|---|
BalloonMarkerDrawable(ColorStateList tintList,
int closedSize) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
animateToNormal() |
void |
animateToPressed() |
void |
draw(Canvas canvas,
Paint paint)
Subclasses should implement this method to do the actual drawing
|
Path |
getPath() |
boolean |
isRunning() |
protected void |
onBoundsChange(Rect bounds) |
void |
setClosedStateSize(float closedStateSize) |
void |
setColors(int startColor,
int endColor)
The two colors that will be used for the seek thumb.
|
void |
setColorStateList(ColorStateList tintStateList)
Set the Tint ColorStateList
|
void |
setExternalOffset(int offset) |
void |
setMarkerListener(BalloonMarkerDrawable.MarkerAnimationListener listener) |
void |
start() |
void |
stop() |
draw, getOpacity, getPaint, isStateful, onColorChange, onStateChange, setColorFilter, setDither, setTintList, setTintModechangeColor, getAlpha, getColor, getColorStateList, setAlpha, setColorapplyTheme, canApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getBounds, getCallback, getChangingConfigurations, getColorFilter, getConstantState, getCurrent, getDirtyBounds, getHotspotBounds, getIntrinsicHeight, getIntrinsicWidth, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getOutline, getPadding, getState, getTransparentRegion, inflate, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isVisible, jumpToCurrentState, mutate, onLayoutDirectionChanged, onLevelChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setTint, setVisible, unscheduleSelfpublic BalloonMarkerDrawable(ColorStateList tintList, int closedSize)
public void setExternalOffset(int offset)
public void setClosedStateSize(float closedStateSize)
public void setColors(int startColor,
int endColor)
startColor - Color used for the seek thumbendColor - Color used for popup indicatorpublic void setColorStateList(ColorStateList tintStateList)
StateColorDrawablesetColorStateList 在类中 StateColorDrawabletintStateList - ColorStateListpublic void draw(Canvas canvas, Paint paint)
StatePaintDrawabledraw 在类中 StatePaintDrawablecanvas - The current Canvas to draw intopaint - The Paint the Paint object that defines with the current
ColorStateList colorpublic Path getPath()
protected void onBoundsChange(Rect bounds)
onBoundsChange 在类中 Drawablepublic void animateToPressed()
public void animateToNormal()
public void setMarkerListener(BalloonMarkerDrawable.MarkerAnimationListener listener)
public void start()
start 在接口中 Animatablepublic void stop()
stop 在接口中 Animatablepublic boolean isRunning()
isRunning 在接口中 Animatable