Google is committed to advancing racial equity for Black communities. See how.

Horizontal

@Immutable interface Horizontal
androidx.ui.core.Alignment.Horizontal

An interface that positions a point on a 1D horizontal finite line. Alignment.Horizontal is often used to define the horizontal alignment of a box inside a parent container.

Summary

Public methods
abstract Int
align(size: Int, layoutDirection: LayoutDirection = LayoutDirection.Ltr)

Returns the position of a 1D point in a container of a given size, according to this Alignment.

Public methods

align

abstract fun align(
    size: Int,
    layoutDirection: LayoutDirection = LayoutDirection.Ltr
): Int

Returns the position of a 1D point in a container of a given size, according to this Alignment.