public abstract class PrimaryLayoutMargins


The set of margins for the primaryLayout's customization.

It is highly recommended to use these predefined values that are optimized for different screen sizes, content's corners and slots presences. Those are:

Summary

Nested types

public static class PrimaryLayoutMargins.Companion

Public fields

static final @NonNull PrimaryLayoutMargins

Default side margins for the main slot of primaryLayout that works for the majority of Shapes inside the main content components, usually across round toward medium round corners.

static final @NonNull PrimaryLayoutMargins

Max side margins for the main slot of primaryLayout that should be used when the main slot contains content components with square corners, for example, smaller than Shapes.medium to avoid clipping.

static final @NonNull PrimaryLayoutMargins

Mid side margins for the main slot of primaryLayout that should be used when the main slot contains content components with fully rounded to medium round corners, for example, larger than Shapes.medium to avoid clipping.

static final @NonNull PrimaryLayoutMargins

Min side margins for the main slot of primaryLayout that should be used only when the main slot contains content components with fully rounded corners, such as Shapes.full to avoid clipping.

Public fields

DEFAULT_PRIMARY_LAYOUT_MARGIN

public static final @NonNull PrimaryLayoutMargins DEFAULT_PRIMARY_LAYOUT_MARGIN

Default side margins for the main slot of primaryLayout that works for the majority of Shapes inside the main content components, usually across round toward medium round corners.

The actual returned values depend on presence of slots in primaryLayout which will be applied automatically.

MAX_PRIMARY_LAYOUT_MARGIN

public static final @NonNull PrimaryLayoutMargins MAX_PRIMARY_LAYOUT_MARGIN

Max side margins for the main slot of primaryLayout that should be used when the main slot contains content components with square corners, for example, smaller than Shapes.medium to avoid clipping.

The actual returned values depend on presence of slots in primaryLayout which will be applied automatically.

MID_PRIMARY_LAYOUT_MARGIN

public static final @NonNull PrimaryLayoutMargins MID_PRIMARY_LAYOUT_MARGIN

Mid side margins for the main slot of primaryLayout that should be used when the main slot contains content components with fully rounded to medium round corners, for example, larger than Shapes.medium to avoid clipping.

The actual returned values depend on presence of slots in primaryLayout which will be applied automatically.

MIN_PRIMARY_LAYOUT_MARGIN

public static final @NonNull PrimaryLayoutMargins MIN_PRIMARY_LAYOUT_MARGIN

Min side margins for the main slot of primaryLayout that should be used only when the main slot contains content components with fully rounded corners, such as Shapes.full to avoid clipping.

The actual returned values depend on presence of slots in primaryLayout which will be applied automatically.