Interface

SpatialAlignment.Depth

An interface to calculate the alignment of a box of a certain size inside an available depth.

Source set: Android
public interface Depth

An interface to calculate the alignment of a box of a certain size inside an available depth.

Functions

align

Source set: Android
public fun align(size: Int, space: Int): Int

Provides the depth alignment offset from the origin of the space to the origin of the content.

Parameters

size The content size in pixels.
space The available space in pixels.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: