int leftSrc = v.getLeft(); int rightSrc = v.getRight(); int topSrc = v.getTop(); int bottomSrc = v.getBottom();
int left = (int) (root.getLeft() + distanceX); int right = (int) (root.getRight() + distanceX); int top = (int) (root.getTop() + distanceY); int bottom = (int) (root.getBottom() + distanceY);
if (BuildConfig.DEBUG) { Prt.w(TAG, String.format("滑动距离%f y:%f src left %d,top%d right %d bottom%d modify left %d,top%d right %d bottom%d", distanceX, distanceY, leftSrc, topSrc, rightSrc, bottomSrc, left, top, right, bottom)); } downX = event.getRawX(); downY = event.getRawY();