library / com.otaliastudios.zoom / Alignment

Alignment

object Alignment

Holds constants for ZoomApi.setAlignment.

Properties

BOTTOM

const val BOTTOM: Int

Aligns the bottom side of the content to the bottom side of the container.

CENTER

const val CENTER: Int

Shorthand for CENTER_HORIZONTAL and CENTER_VERTICAL together.

CENTER_HORIZONTAL

const val CENTER_HORIZONTAL: Int

Centers the content horizontally inside the container.

CENTER_VERTICAL

const val CENTER_VERTICAL: Int

Centers the content vertically inside the container.

LEFT

const val LEFT: Int

Aligns left side of the content to the left side of the container.

NONE

const val NONE: Int

Shorthand for NONE_HORIZONTAL and NONE_VERTICAL together.

NONE_HORIZONTAL

const val NONE_HORIZONTAL: Int

No forced alignment on the horizontal axis.

NONE_VERTICAL

const val NONE_VERTICAL: Int

No forced alignment on the vertical axis.

RIGHT

const val RIGHT: Int

Aligns right side of the content to the right side of the container.

TOP

const val TOP: Int

Aligns top side of the content to the top side of the container.