类 ThumbDrawable
- java.lang.Object
-
- android.graphics.drawable.Drawable
-
- com.lyy.keepassa.widget.discreteSeekBar.internal.drawable.StateDrawable
-
- com.lyy.keepassa.widget.discreteSeekBar.internal.drawable.ThumbDrawable
-
- 所有已实现的接口:
android.graphics.drawable.Animatable
public class ThumbDrawable extends StateDrawable implements android.graphics.drawable.Animatable
HACK
SpecialStateDrawableimplementation to draw the Thumb circle. It's special because it will stop drawing once the state is pressed/focused BUT only after a small delay. This special delay is meant to help avoiding frame glitches while theMarkeris added to the Window
-
-
字段概要
字段 修饰符和类型 字段 说明 static intDEFAULT_SIZE_DP
-
构造器概要
构造器 构造器 说明 ThumbDrawable(android.content.res.ColorStateList tintStateList, int size)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidanimateToNormal()voidanimateToPressed()voiddoDraw(android.graphics.Canvas canvas, android.graphics.Paint paint)intgetIntrinsicHeight()intgetIntrinsicWidth()booleanisRunning()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, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getOpticalInsets, getOutline, getPadding, getState, getTransparentRegion, hasFocusStateSpecified, inflate, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isProjected, isVisible, jumpToCurrentState, mutate, onBoundsChange, onLayoutDirectionChanged, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setTint, setTintBlendMode, setTintList, setTintMode, setVisible, unscheduleSelf
-
-
-
-
字段详细资料
-
DEFAULT_SIZE_DP
public static final int DEFAULT_SIZE_DP
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
getIntrinsicWidth
public int getIntrinsicWidth()
- 覆盖:
getIntrinsicWidth在类中android.graphics.drawable.Drawable
-
getIntrinsicHeight
public int getIntrinsicHeight()
- 覆盖:
getIntrinsicHeight在类中android.graphics.drawable.Drawable
-
doDraw
public void doDraw(android.graphics.Canvas canvas, android.graphics.Paint paint)
-
animateToPressed
public void animateToPressed()
-
animateToNormal
public void animateToNormal()
-
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
-
-