class LayoutDefaults


Contains the default values used by layout templates for ProtoLayout.

Summary

Nested types

Contains default values used for MultiButtonLayout.

Constants

const DimensionBuilders.DpProp

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

const DimensionBuilders.DpProp

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

const Float

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

const Float

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

const Int

This property is deprecated.

Use MAX_BUTTONS instead.

const DimensionBuilders.DpProp

The default spacer width for slots in a MultiSlotLayout.

Constants

DEFAULT_LARGE_VERTICAL_SPACER_HEIGHT

Added in 1.2.0-alpha04
const val DEFAULT_LARGE_VERTICAL_SPACER_HEIGHTDimensionBuilders.DpProp

The default spacer height that should be between main content and secondary label if set in the EdgeContentLayout or PrimaryLayout. It's not applicable to other layouts.

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

This spacing can be customized by calling setContentAndSecondaryLabelSpacing or setVerticalSpacerHeight.

DEFAULT_VERTICAL_SPACER_HEIGHT

Added in 1.0.0
const val DEFAULT_VERTICAL_SPACER_HEIGHTDimensionBuilders.DpProp

The default spacer height that should be between main content and secondary label if set in the EdgeContentLayout or PrimaryLayout. It's not applicable to other layouts.

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

This spacing can be customized by calling setContentAndSecondaryLabelSpacing or setVerticalSpacerHeight.

EDGE_CONTENT_LAYOUT_PADDING_ABOVE_MAIN_CONTENT_DP

Added in 1.0.0
const val EDGE_CONTENT_LAYOUT_PADDING_ABOVE_MAIN_CONTENT_DP = 6.0f: Float

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
const val EDGE_CONTENT_LAYOUT_PADDING_BELOW_MAIN_CONTENT_DP = 8.0f: Float

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
const val MULTI_BUTTON_MAX_NUMBER = 7: Int

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

MULTI_SLOT_LAYOUT_HORIZONTAL_SPACER_WIDTH

Added in 1.0.0
const val MULTI_SLOT_LAYOUT_HORIZONTAL_SPACER_WIDTHDimensionBuilders.DpProp

The default spacer width for slots in a MultiSlotLayout.