Class ShadowBitmapDrawable


  • @Implements(android.graphics.drawable.BitmapDrawable.class)
    public class ShadowBitmapDrawable
    extends ShadowDrawable
    • Constructor Detail

      • ShadowBitmapDrawable

        public ShadowBitmapDrawable()
    • Method Detail

      • draw

        @Implementation
        protected void draw​(android.graphics.Canvas canvas)
        Draws the contained bitmap onto the canvas at 0,0 with a default Paint
        Parameters:
        canvas - the canvas to draw on
      • mutate

        @Implementation
        protected android.graphics.drawable.Drawable mutate()
      • setColorFilter

        @Implementation
        protected void setColorFilter​(android.graphics.ColorFilter colorFilter)
      • getCreatedFromResId

        @Deprecated
        public int getCreatedFromResId()
        Deprecated.
        use ShadowBitmap#getCreatedFromResId() instead.
        Returns the resource id that this BitmapDrawable was loaded from. This lets your tests assert that the bitmap is correct without having to actually load the bitmap.
        Overrides:
        getCreatedFromResId in class ShadowDrawable
        Returns:
        resource id from which this BitmapDrawable was loaded
      • getSource

        public java.lang.String getSource()
      • getPath

        public java.lang.String getPath()