library / com.otaliastudios.zoom / ZoomApi / setTransformation

setTransformation

open fun setTransformation(transformation: Int): Unit

Sets the base transformation to be applied to the content. See setTransformation.

Parameters

transformation - the transformation type

abstract fun setTransformation(transformation: Int, gravity: Int): Unit

Sets the base transformation to be applied to the content. Defaults to TRANSFORMATION_CENTER_INSIDE with android.view.Gravity.CENTER, which means that the content will be zoomed so that it fits completely inside the container.

Parameters

transformation - the transformation type

gravity - the transformation gravity. Might be ignored for some transformations