public class MarkerDrawable extends StateDrawable implements android.graphics.drawable.Animatable
StateDrawable to draw a morphing marker symbol.
It's basically an implementation of an Animatable Drawable with the following details:
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
MarkerDrawable.MarkerAnimationListener
A listener interface to porpagate animation events
This is the "poor's man" AnimatorListener for this Drawable
|
| 构造器和说明 |
|---|
MarkerDrawable(android.content.res.ColorStateList tintList,
int closedSize) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
animateToNormal() |
void |
animateToPressed() |
android.graphics.Path |
getPath() |
boolean |
isRunning() |
protected void |
onBoundsChange(android.graphics.Rect bounds) |
void |
setColors(int startColor,
int endColor)
The two colors that will be used for the seek thumb.
|
void |
setExternalOffset(int offset) |
void |
setMarkerListener(MarkerDrawable.MarkerAnimationListener listener) |
void |
start() |
void |
stop() |
draw, getAlpha, getOpacity, isStateful, setAlpha, setColorFilter, setColorStateList, setStateapplyTheme, 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, getOpticalInsets, getOutline, getPadding, getState, getTransparentRegion, inflate, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isProjected, isVisible, jumpToCurrentState, mutate, onLayoutDirectionChanged, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setTint, setTintBlendMode, setTintList, setTintMode, setVisible, unscheduleSelfpublic MarkerDrawable(@NonNull
android.content.res.ColorStateList tintList,
int closedSize)
public void setExternalOffset(int offset)
public void setColors(int startColor,
int endColor)
startColor - Color used for the seek thumbendColor - Color used for popup indicatorpublic android.graphics.Path getPath()
protected void onBoundsChange(android.graphics.Rect bounds)
onBoundsChange 在类中 android.graphics.drawable.Drawablepublic void animateToPressed()
public void animateToNormal()
public void setMarkerListener(MarkerDrawable.MarkerAnimationListener listener)
public void start()
start 在接口中 android.graphics.drawable.Animatablepublic void stop()
stop 在接口中 android.graphics.drawable.Animatablepublic boolean isRunning()
isRunning 在接口中 android.graphics.drawable.Animatable