code: private void initializeTransformer() {
      TransformerFactory transformerFactory = new TransformerFactory();
      transformer = transformerFactory.getTransformer(topViewResize, dragView, this);
      transformer.setViewHeight(topViewHeight);
      transformer.setXScaleFactor(scaleFactorX);
      transformer.setYScaleFactor(scaleFactorY);
      transformer.setMarginRight(marginRight);
      transformer.setMarginBottom(marginBottom);
    }
docs: Initialize Transformer with a scalable or change width/height implementation.