Package 

Class Indicator

  • All Implemented Interfaces:
    android.graphics.drawable.Animatable

    
    public abstract class Indicator
    extends Drawable implements Animatable
                        

    Created by Jack Wang on 2016/8/5.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int alpha
      protected Rect drawBounds
    • Constructor Summary

      Constructors 
      Constructor Description
      Indicator()
    • Method Summary

      Modifier and Type Method Description
      int getAlpha()
      void setAlpha(int alpha)
      Rect getDrawBounds()
      void setDrawBounds(Rect drawBounds)
      int getColor()
      void setColor(int color)
      void setAnimationSpeedMultiplier(float speedMultiplier) Set the animation speed multiplier.
      float getAnimationSpeedMultiplier() Get the current animation speed multiplier.
      int getOpacity()
      void setColorFilter(ColorFilter colorFilter)
      void draw(Canvas canvas)
      abstract void draw(Canvas canvas, Paint paint)
      abstract ArrayList<ValueAnimator> onCreateAnimators()
      void start()
      void stop()
      boolean isRunning()
      void addUpdateListener(ValueAnimator animator, ValueAnimator.AnimatorUpdateListener updateListener) Your should use this to add AnimatorUpdateListener whencreate animator , otherwise , animator doesn't work whenthe animation restart .
      void postInvalidate()
      int getWidth()
      int getHeight()
      int centerX()
      int centerY()
      float exactCenterX()
      float exactCenterY()
      • Methods inherited from class android.graphics.drawable.Drawable

        applyTheme, canApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromStream, createFromXml, createFromXmlInner, draw, getAlpha, getBounds, getCallback, getChangingConfigurations, getColorFilter, getConstantState, getCurrent, getDirtyBounds, getHotspotBounds, getIntrinsicHeight, getIntrinsicWidth, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getOpacity, getOpticalInsets, getOutline, getPadding, getState, getTransparentRegion, hasFocusStateSpecified, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isProjected, isStateful, isVisible, jumpToCurrentState, mutate, onLayoutDirectionChanged, resolveOpacity, scheduleSelf, setAlpha, setAutoMirrored, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setTint, setTintBlendMode, setTintList, setTintMode, setVisible, unscheduleSelf
      • Methods inherited from class android.graphics.drawable.Animatable

        isRunning, start, stop
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait