TextViewTarget extends ViewTarget<TextView> { public TextViewTarget bounds(int left, int top, int right, int bottom) { boundsLeft = left; boundsTop = top; boundsRight = right; boundsBottom = bottom; return this; } TextViewTarget(TextView textView);  TextViewTarget(MirageRequest request, TextView textView); TextViewTarget location(@Location int location); TextViewTarget bounds(int left, int top, int right, int bottom); @Override ViewTarget<TextView> fade(); static final int LEFT; static final int TOP; static final int RIGHT; static final int BOTTOM; }
@Test public void testBounds() { TextView textView = new TextView(RuntimeEnvironment.application); TextViewTarget target = new TextViewTarget(textView); target.placeHolder(new ColorDrawable(Color.RED)); target.error(new ColorDrawable(Color.BLUE)); target.location(TextViewTarget.LEFT); target.bounds(0, 0, 80, 80); target.onPreparingLoad(); Assert.assertEquals(new Rect(0, 0, 80, 80), textView.getCompoundDrawables()[0].getBounds()); }