🌈 Create new beautiful Compose Gradients with our new wesite ->
Interface

CurvedAlignment

Source set: Android
public interface CurvedAlignment

Members

Radial

Source set: Android
public class Radial internal constructor(internal val ratio: Float)

How to lay down components when they are thinner than the container. This is analogue of Alignment.Vertical in a Row.

Members

Companion

Source set: Android
public companion object

Properties

Inner

Source set: Android
public val Inner: Radial = Radial(1f)

Put the child closest to the center of the container, within the available space

Center

Source set: Android
public val Center: Radial = Radial(0.5f)

Put the child in the middle point of the available space.

Outer

Source set: Android
public val Outer: Radial = Radial(0f)

Put the child farthest from the center of the container, within the available space

Functions

Custom

Source set: Android
public fun Custom(ratio: Float): Radial

Align the child in a custom position, 0 means Outer, 1 means Inner

Angular

Source set: Android
public class Angular internal constructor(internal val ratio: Float)

How to lay down components when they have a smaller sweep than their container. This is analogue of Alignment.Horizontal in a Column.

Members

Companion

Source set: Android
public companion object

Properties

Start

Source set: Android
public val Start: Angular = Angular(0f)

Put the child at the angular start of the layout of the container, within the available space

Center

Source set: Android
public val Center: Angular = Angular(0.5f)

Put the child in the middle point of the available space.

End

Source set: Android
public val End: Angular = Angular(1f)

Put the child at the angular end of the layout of the container, within the available space

Functions

Custom

Source set: Android
public fun Custom(ratio: Float): Angular

Align the child in a custom position, 0 means Start, 1 means End