{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

SnapPositionInLayout.Companion

public static class SnapPositionInLayout.Companion


Summary

Public methods

static final @NonNull SnapPositionInLayout

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

Public methods

getCenterToCenter

public static final @NonNull SnapPositionInLayout getCenterToCenter()

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