code: private static void transformMatrixToPager(Matrix matrix, View view, ViewPager pager) {
          if (view.getParent() instanceof View) {
              View parent = (View) view.getParent();
              if (parent != pager) {
                  transformMatrixToPager(matrix, parent, pager);
              }
              matrix.preTranslate(-parent.getScrollX(), -parent.getScrollY());
          }
  
          matrix.preTranslate(view.getLeft(), view.getTop());
          matrix.preConcat(view.getMatrix());
      }
docs: /*
  Inspired by hidden method View#transformMatrixToGlobal().