How do you scale one view to another? I tried finding scale x and scale y by dividing the width and height of each view, but it doesn't return the right value.
Scale a -> b.
a.setPivotX(0);
a.setPivotY(0);
a.setScaleX(b.getWidth() / a.getWidth())
a.setScaleY(b.getHeight() / a.getHeight())