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

RemoteAlignment

A remote equivalent of androidx.compose.ui.Alignment.

Source set: Android
public interface RemoteAlignment

A remote equivalent of androidx.compose.ui.Alignment. It is used to define how a layout's children should be positioned.

Pre-defined alignment objects are available through the companion object:

  • Horizontal: Start, CenterHorizontally, End
  • Vertical: Top, CenterVertically, Bottom

Properties

horizontal

Source set: Android
public val horizontal: Horizontal

vertical

Source set: Android
public val vertical: Vertical

Members

Horizontal

Source set: Android
public sealed interface Horizontal

A remote equivalent of androidx.compose.ui.Alignment.Horizontal. It is used to define how a layout's children should be positioned horizontally.

Pre-defined alignment objects are available: Start, CenterHorizontally, and End.

Vertical

Source set: Android
public sealed interface Vertical

An alignment that defines how to place a child vertically inside a parent layout. This corresponds to androidx.compose.ui.Alignment.Vertical.

Companion

Source set: Android
public companion object

A collection of common RemoteAlignments aware of layout direction.

Properties

TopStart

Source set: Android
public val TopStart: RemoteAlignment =
            RemoteBiasAlignment(ColumnLayout.START, ColumnLayout.TOP)

TopCenter

Source set: Android
public val TopCenter: RemoteAlignment =
            RemoteBiasAlignment(ColumnLayout.CENTER, ColumnLayout.TOP)

TopEnd

Source set: Android
public val TopEnd: RemoteAlignment = RemoteBiasAlignment(ColumnLayout.END, ColumnLayout.TOP)

CenterStart

Source set: Android
public val CenterStart: RemoteAlignment =
            RemoteBiasAlignment(ColumnLayout.START, ColumnLayout.CENTER)

Center

Source set: Android
public val Center: RemoteAlignment =
            RemoteBiasAlignment(ColumnLayout.CENTER, ColumnLayout.CENTER)

CenterEnd

Source set: Android
public val CenterEnd: RemoteAlignment =
            RemoteBiasAlignment(ColumnLayout.END, ColumnLayout.CENTER)

BottomStart

Source set: Android
public val BottomStart: RemoteAlignment =
            RemoteBiasAlignment(ColumnLayout.START, ColumnLayout.BOTTOM)

BottomCenter

Source set: Android
public val BottomCenter: RemoteAlignment =
            RemoteBiasAlignment(ColumnLayout.CENTER, ColumnLayout.BOTTOM)

BottomEnd

Source set: Android
public val BottomEnd: RemoteAlignment =
            RemoteBiasAlignment(ColumnLayout.END, ColumnLayout.BOTTOM)

Top

Source set: Android
public val Top: Vertical = RemoteBiasAlignment.Vertical(ColumnLayout.TOP)

CenterVertically

Source set: Android
public val CenterVertically: Vertical = RemoteBiasAlignment.Vertical(ColumnLayout.CENTER)

Bottom

Source set: Android
public val Bottom: Vertical = RemoteBiasAlignment.Vertical(ColumnLayout.BOTTOM)

Start

Source set: Android
public val Start: Horizontal = RemoteBiasAlignment.Horizontal(ColumnLayout.START)

CenterHorizontally

Source set: Android
public val CenterHorizontally: Horizontal =
            RemoteBiasAlignment.Horizontal(ColumnLayout.CENTER)

End

Source set: Android
public val End: Horizontal = RemoteBiasAlignment.Horizontal(ColumnLayout.END)

Content updated: