Class ShadowDrawable

java.lang.Object
org.robolectric.shadows.ShadowDrawable
Direct Known Subclasses:
ShadowBitmapDrawable, ShadowGradientDrawable, ShadowNativeAnimatedImageDrawable, ShadowNativeAnimatedVectorDrawable, ShadowNativeVectorDrawable, ShadowPaintDrawable, ShadowStateListDrawable, ShadowVectorDrawable

@Implements(android.graphics.drawable.Drawable.class) public class ShadowDrawable extends Object
  • Constructor Details

    • ShadowDrawable

      public ShadowDrawable()
  • Method Details

    • createFromResourceId

      @Deprecated public static Drawable createFromResourceId(int resourceId)
      Deprecated.
      use ContextCompat.getDrawable(context, resourceId)
      Returns an invalid Drawable with the given the resource id.
    • setCreatedFromResId

      protected void setCreatedFromResId(int createdFromResId, String resourceName)
    • getInputStream

      public InputStream getInputStream()
    • invalidateSelf

      @Implementation protected void invalidateSelf()
    • getCreatedFromResId

      public int getCreatedFromResId()
    • wasInvalidated

      public boolean wasInvalidated()
    • validate

      public void validate()