library / com.otaliastudios.zoom / ZoomEngine / setAlignment

setAlignment

open fun setAlignment(alignment: Int): Unit

Overrides ZoomApi.setAlignment

Sets the content alignment. Can be any of the constants defined in Alignment. The content will be aligned and forced to the specified side of the container. Defaults to ZoomApi.ALIGNMENT_DEFAULT.

Keep in mind that this is disabled when the content is larger than the container, because a forced alignment in this case would result in part of the content being unreachable.

Parameters

alignment - the new alignment