类 MarkerDrawable
- java.lang.Object
-
- android.graphics.drawable.Drawable
-
- com.lyy.keepassa.widget.discreteSeekBar.internal.drawable.StateDrawable
-
- com.lyy.keepassa.widget.discreteSeekBar.internal.drawable.MarkerDrawable
-
- 所有已实现的接口:
android.graphics.drawable.Animatable
public class MarkerDrawable extends StateDrawable implements android.graphics.drawable.Animatable
Implementation ofStateDrawableto draw a morphing marker symbol.It's basically an implementation of an
AnimatableDrawable with the following details:- Animates from a circle shape to a "marker" shape just using a RoundRect
- Animates color change from the normal state color to the pressed state color
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static interfaceMarkerDrawable.MarkerAnimationListenerA listener interface to porpagate animation events This is the "poor's man" AnimatorListener for this Drawable
-
构造器概要
构造器 构造器 说明 MarkerDrawable(android.content.res.ColorStateList tintList, int closedSize)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidanimateToNormal()voidanimateToPressed()android.graphics.PathgetPath()booleanisRunning()protected voidonBoundsChange(android.graphics.Rect bounds)voidsetColors(int startColor, int endColor)The two colors that will be used for the seek thumb.voidsetExternalOffset(int offset)voidsetMarkerListener(MarkerDrawable.MarkerAnimationListener listener)voidstart()voidstop()-
从类继承的方法 com.lyy.keepassa.widget.discreteSeekBar.internal.drawable.StateDrawable
draw, getAlpha, getOpacity, isStateful, setAlpha, setColorFilter, setColorStateList, setState
-
从类继承的方法 android.graphics.drawable.Drawable
applyTheme, 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, hasFocusStateSpecified, 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, unscheduleSelf
-
-
-
-
方法详细资料
-
setExternalOffset
public void setExternalOffset(int offset)
-
setColors
public void setColors(int startColor, int endColor)The two colors that will be used for the seek thumb.- 参数:
startColor- Color used for the seek thumbendColor- Color used for popup indicator
-
getPath
public android.graphics.Path getPath()
-
onBoundsChange
protected void onBoundsChange(android.graphics.Rect bounds)
- 覆盖:
onBoundsChange在类中android.graphics.drawable.Drawable
-
animateToPressed
public void animateToPressed()
-
animateToNormal
public void animateToNormal()
-
setMarkerListener
public void setMarkerListener(MarkerDrawable.MarkerAnimationListener listener)
-
start
public void start()
- 指定者:
start在接口中android.graphics.drawable.Animatable
-
stop
public void stop()
- 指定者:
stop在接口中android.graphics.drawable.Animatable
-
isRunning
public boolean isRunning()
- 指定者:
isRunning在接口中android.graphics.drawable.Animatable
-
-