类 ThumbDrawable

  • 所有已实现的接口:
    android.graphics.drawable.Animatable

    public class ThumbDrawable
    extends StateDrawable
    implements android.graphics.drawable.Animatable

    HACK

    Special StateDrawable implementation 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 the Marker is added to the Window
    • 嵌套类概要

      • 从类继承的嵌套类/接口 android.graphics.drawable.Drawable

        android.graphics.drawable.Drawable.Callback, android.graphics.drawable.Drawable.ConstantState
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      static int DEFAULT_SIZE_DP  
    • 构造器概要

      构造器 
      构造器 说明
      ThumbDrawable​(android.content.res.ColorStateList tintStateList, int size)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void animateToNormal()  
      void animateToPressed()  
      void doDraw​(android.graphics.Canvas canvas, android.graphics.Paint paint)  
      int getIntrinsicHeight()  
      int getIntrinsicWidth()  
      boolean isRunning()  
      void start()  
      void stop()  
      • 从类继承的方法 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
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • DEFAULT_SIZE_DP

        public static final int DEFAULT_SIZE_DP
        另请参阅:
        常量字段值
    • 构造器详细资料

      • ThumbDrawable

        public ThumbDrawable​(@NonNull
                             android.content.res.ColorStateList tintStateList,
                             int size)
    • 方法详细资料

      • 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