getWidth() returns the width before conversion to the view ( setScaleX , etc.). So it is expected. This is confirmed by the getDrawingRect documentation:
These bounds do not account for any transformation properties currently set on the view, such as setScaleX(float) or setRotation(float).
source share