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

Horizontal

@Immutable data class Horizontal : Alignment.Horizontal
kotlin.Any
   ↳ androidx.ui.core.AbsoluteAlignment.Horizontal

Represents a absolute positioning of a point on a 1D horizontal finite line. The position will not be mirrored in Rtl context.

Summary

Public methods
Int
align(size: Int, layoutDirection: LayoutDirection)

Returns the position of a 2D point in a container of a given size, according to this AbsoluteAlignment.Horizontal.

Public methods

align

fun align(
    size: Int,
    layoutDirection: LayoutDirection
): Int

Returns the position of a 2D point in a container of a given size, according to this AbsoluteAlignment.Horizontal. This position will not be mirrored in Rtl context.