Compose Unstyled 2.0 is out! Check the official announcement blog ->
Class

SpatialBiasAbsoluteAlignment.Horizontal

Creates a weighted alignment that specifies a horizontal bias and independent of layout direction

Source set: Android
public class Horizontal(@param:FloatRange(-1.0, 1.0) public val horizontalBias: Float) :
        SpatialAlignment.Horizontal

Creates a weighted alignment that specifies a horizontal bias and independent of layout direction

Parameters

horizontalBias Must be within the range of [-1, 1] with -1 being left and 1 being right.

Functions

copy

public fun copy(bias: Float = this.horizontalBias): Horizontal

Last updated: