|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xtremelabs.robolectric.shadows.ShadowDrawable
com.xtremelabs.robolectric.shadows.ShadowBitmapDrawable
@Implements(value=android.graphics.drawable.BitmapDrawable.class) public class ShadowBitmapDrawable
Constructor Summary | |
---|---|
ShadowBitmapDrawable()
|
Method Summary | |
---|---|
void |
draw(android.graphics.Canvas canvas)
Draws the contained bitmap onto the canvas at 0,0 with a default Paint |
int |
getLoadedFromResourceId()
Non-Android accessor that tells you the resource id that this BitmapDrawable was loaded from. |
Methods inherited from class com.xtremelabs.robolectric.shadows.ShadowDrawable |
---|
createFromStream, getBounds, getIntrinsicHeight, getIntrinsicWidth, setBounds, setBounds, setIntrinsicHeight, setIntrinsicWidth |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShadowBitmapDrawable()
Method Detail |
---|
@Implementation public void draw(android.graphics.Canvas canvas)
Paint
canvas
- the canvas to draw onpublic int getLoadedFromResourceId()
BitmapDrawable
was loaded from. This lets
your tests assert that the bitmap is correct without having to actually load the bitmap.
BitmapDrawable
was loaded
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |