LayoutDefaults
public class LayoutDefaults
Contains the default values used by layout templates for ProtoLayout.
Summary
Nested types |
|---|
public final class LayoutDefaults.MultiButtonLayoutDefaultsContains default values used for |
Constants |
|
|---|---|
static final @NonNull DimensionBuilders.DpProp |
The default spacer height that should be between main content and secondary label if set in the |
static final @NonNull DimensionBuilders.DpProp |
The default spacer height that should be between main content and secondary label if set in the |
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 |
static final @NonNull DimensionBuilders.DpProp |
The default spacer width for slots in a |
Constants
DEFAULT_LARGE_VERTICAL_SPACER_HEIGHT
public static final @NonNull DimensionBuilders.DpProp DEFAULT_LARGE_VERTICAL_SPACER_HEIGHT
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
public static final @NonNull DimensionBuilders.DpProp DEFAULT_VERTICAL_SPACER_HEIGHT
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
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 EdgeContentLayout.
EDGE_CONTENT_LAYOUT_PADDING_BELOW_MAIN_CONTENT_DP
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 EdgeContentLayout.
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
public static final @NonNull DimensionBuilders.DpProp MULTI_SLOT_LAYOUT_HORIZONTAL_SPACER_WIDTH
The default spacer width for slots in a MultiSlotLayout.