@Override protected void onLayout(boolean changed, int l, int t, int r, int b) { super.onLayout(changed, l, t, r, b); if (changed && mWrappedView != null) { sTempRect.left = (int) mWrappedView.getPivotX(); sTempRect.top = (int) mWrappedView.getPivotY(); offsetDescendantRectToMyCoords(mWrappedView, sTempRect); setPivotX(sTempRect.left); setPivotY(sTempRect.top); } }
public static float getPivotX(View view) { return view.getPivotX(); }
@Override public float getPivotX(View view) { return view.getPivotX(); }