Object

SnapPosition.Center

Aligns the center of the item with the center of the containing layout.

Source set: Common
public object Center : SnapPosition

Aligns the center of the item with the center of the containing layout.

Functions

position

Source set: Common
override fun position(
            layoutSize: Int,
            itemSize: Int,
            beforeContentPadding: Int,
            afterContentPadding: Int,
            itemIndex: Int,
            itemCount: Int,
        ): Int

toString

Source set: Common
override fun toString(): String
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: