public class LayoutDefaults


Contains the default values used by layout templates for ProtoLayout.

Summary

Nested types

Contains default values used for MultiButtonLayout.

Constants

static final DimensionBuilders.DpProp

The recommended space between the main content and additional labels in layouts.

static final DimensionBuilders.DpProp

The default spacer width that should be between main content and secondary label if set in the EdgeContentLayout.

static final DimensionBuilders.DpProp

The default spacer width that should be between main content and secondary label if set in the EdgeContentLayout.

static final float

The recommended padding that should be above the main content (text) in the .

static final float

The recommended padding that should be below the main content (text) in the .

static final int

This field is deprecated.

Use MAX_BUTTONS instead.

static final DimensionBuilders.DpProp

The default spacer width for slots in a MultiSlotLayout.

Constants

DEFAULT_VERTICAL_SPACER_HEIGHT

Added in 1.0.0
public static final DimensionBuilders.DpProp DEFAULT_VERTICAL_SPACER_HEIGHT

The recommended space between the main content and additional labels in layouts.

EDGE_CONTENT_LAYOUT_CONTENT_AND_SECONDARY_LABEL_SPACING_DP

Added in 1.2.0-alpha01
public static final DimensionBuilders.DpProp EDGE_CONTENT_LAYOUT_CONTENT_AND_SECONDARY_LABEL_SPACING_DP

The default spacer width that should be between main content and secondary label if set in the EdgeContentLayout.

It is recommended to use this on smaller screen sizes or when there's a lot of content in the layout.

EDGE_CONTENT_LAYOUT_LARGE_CONTENT_AND_SECONDARY_LABEL_SPACING_DP

Added in 1.2.0-alpha01
public static final DimensionBuilders.DpProp EDGE_CONTENT_LAYOUT_LARGE_CONTENT_AND_SECONDARY_LABEL_SPACING_DP

The default spacer width that should be between main content and secondary label if set in the EdgeContentLayout.

It is recommended to use this on larger screen sizes (screen sizes above 225dp).

EDGE_CONTENT_LAYOUT_PADDING_ABOVE_MAIN_CONTENT_DP

Added in 1.0.0
public static final float EDGE_CONTENT_LAYOUT_PADDING_ABOVE_MAIN_CONTENT_DP = 6.0f

The recommended padding that should be above the main content (text) in the .

EDGE_CONTENT_LAYOUT_PADDING_BELOW_MAIN_CONTENT_DP

Added in 1.0.0
public static final float EDGE_CONTENT_LAYOUT_PADDING_BELOW_MAIN_CONTENT_DP = 8.0f

The recommended padding that should be below the main content (text) in the .

MULTI_BUTTON_MAX_NUMBER

Added in 1.0.0
Deprecated in 1.0.0
public static final int MULTI_BUTTON_MAX_NUMBER = 7

The maximum number of button that can be added to the MultiButtonLayout.

MULTI_SLOT_LAYOUT_HORIZONTAL_SPACER_WIDTH

Added in 1.0.0
public static final DimensionBuilders.DpProp MULTI_SLOT_LAYOUT_HORIZONTAL_SPACER_WIDTH

The default spacer width for slots in a MultiSlotLayout.