예제 #1
0
 @Implementation
 public void onLayout(boolean changed, int left, int top, int right, int bottom) {
   onLayoutWasCalled = true;
   directlyOn(
       realView,
       View.class,
       "onLayout",
       ClassParameter.from(boolean.class, changed),
       ClassParameter.from(int.class, left),
       ClassParameter.from(int.class, top),
       ClassParameter.from(int.class, right),
       ClassParameter.from(int.class, bottom));
 }
예제 #2
0
 public void setMyParent(ViewParent viewParent) {
   directlyOn(
       realView, View.class, "assignParent", ClassParameter.from(ViewParent.class, viewParent));
 }
 @Implementation
 public void notifyDataSetChanged() {
   wasNotifyDataSetChangedCalled = true;
   directlyOn(realBaseAdapter, BaseAdapter.class, "notifyDataSetChanged");
 }
 @Implementation
 public void setOnRefreshListener(OnRefreshListener listener) {
   this.listener = listener;
   Shadow.directlyOn(realObject, SwipeRefreshLayout.class).setOnRefreshListener(listener);
 }
예제 #5
0
 @Implementation
 public void invalidateSelf() {
   wasInvalidated = true;
   Shadow.directlyOn(realDrawable, Drawable.class, "invalidateSelf");
 }
예제 #6
0
 @Implementation
 public void setAlpha(int alpha) {
   this.alpha = alpha;
   Shadow.directlyOn(realDrawable, Drawable.class).setAlpha(alpha);
 }