setTransformPivot
abstract fun setTransformPivot(@FloatRange(from = 0.0, to = 100.0) pivotXPercent: Float, @FloatRange(from = 0.0, to = 100.0) pivotYPercent: Float)
Sets the transform pivot of a View - used for scale and rotation transforms - to be centered at the given point, expressed as a percentage of the View's width and height. The default pivot point is (50f, 50f).
Parameters
pivotXPercent
the percentage of the View's width to use as the pivot point's x-coordinate, expressed from 0-100f
pivotYPercent
the percentage of the View's height to use as the pivot point's y-coordinate, expressed from 0-100f