Class ShadowGradientDrawable

java.lang.Object
org.robolectric.shadows.ShadowDrawable
org.robolectric.shadows.ShadowGradientDrawable

  • Constructor Details

    • ShadowGradientDrawable

      public ShadowGradientDrawable()
  • Method Details

    • setColor

      @Filter protected void setColor(int color)
    • setShape

      @Filter protected void setShape(int shape)
    • setStroke

      @Filter protected void setStroke(int width, ColorStateList colorStateList)
    • setStroke

      @Filter protected void setStroke(int width, ColorStateList colorStateList, float dashWidth, float dashGap)
    • setStroke

      @Filter protected void setStroke(int width, int color, float dashWidth, float dashGap)
    • setStroke

      @Filter protected void setStroke(int width, int color)
    • getLastSetColor

      public int getLastSetColor()
      Returns the color of this drawable as set by the last call to setColor(int color).

      Note that this only works if the color is explicitly set with setColor(int color). If the color of this drawable is set by another method, the result will be 0.

    • getShape

      @Implementation(minSdk=24) protected int getShape()
    • getStrokeWidth

      public int getStrokeWidth()
    • getStrokeColor

      public int getStrokeColor()
    • getStrokeColorStateList

      public ColorStateList getStrokeColorStateList()
    • getStrokeDashWidth

      public float getStrokeDashWidth()
    • getStrokeDashGap

      public float getStrokeDashGap()