# LayoutDefaults

Artifact: [androidx.wear.tiles:tiles-material](https://developer.android.com/jetpack/androidx/releases/wear-tiles) [View Source](https://cs.android.com/search?q=file:androidx/wear/tiles/material/layouts/LayoutDefaults.java+class:androidx.wear.tiles.material.layouts.LayoutDefaults) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

*** ** * ** ***


```
public class LayoutDefaults
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
>
> Use the new class `https://developer.android.com/reference/androidx/wear/protolayout/material/layouts/LayoutDefaults` which provides the same API and functionality.

Contains the default values used by layout templates for Tiles.

## Summary

| ### Constants |
|---|---|
| `static final @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/DimensionBuilders.DpProp` | `https://developer.android.com/reference/androidx/wear/tiles/material/layouts/LayoutDefaults#DEFAULT_VERTICAL_SPACER_HEIGHT()` **This field is deprecated.** Deprecated in Java |
| `static final float` | `https://developer.android.com/reference/androidx/wear/tiles/material/layouts/LayoutDefaults#EDGE_CONTENT_LAYOUT_PADDING_ABOVE_MAIN_CONTENT_DP() = 6.0f` **This field is deprecated.** Deprecated in Java |
| `static final float` | `https://developer.android.com/reference/androidx/wear/tiles/material/layouts/LayoutDefaults#EDGE_CONTENT_LAYOUT_PADDING_BELOW_MAIN_CONTENT_DP() = 8.0f` **This field is deprecated.** Deprecated in Java |
| `static final int` | `https://developer.android.com/reference/androidx/wear/tiles/material/layouts/LayoutDefaults#MULTI_BUTTON_MAX_NUMBER() = 7` **This field is deprecated.** Deprecated in Java |
| `static final @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/DimensionBuilders.DpProp` | `https://developer.android.com/reference/androidx/wear/tiles/material/layouts/LayoutDefaults#MULTI_SLOT_LAYOUT_HORIZONTAL_SPACER_WIDTH()` **This field is deprecated.** Deprecated in Java |

## Constants

### DEFAULT_VERTICAL_SPACER_HEIGHT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public static final @NonNull DimensionBuilders.DpProp DEFAULT_VERTICAL_SPACER_HEIGHT
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

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

### EDGE_CONTENT_LAYOUT_PADDING_ABOVE_MAIN_CONTENT_DP

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public static final float EDGE_CONTENT_LAYOUT_PADDING_ABOVE_MAIN_CONTENT_DP = 6.0f
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

The recommended padding that should be above the main content (text) in the `https://developer.android.com/reference/androidx/wear/tiles/material/layouts/EdgeContentLayout`.

### EDGE_CONTENT_LAYOUT_PADDING_BELOW_MAIN_CONTENT_DP

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public static final float EDGE_CONTENT_LAYOUT_PADDING_BELOW_MAIN_CONTENT_DP = 8.0f
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

The recommended padding that should be below the main content (text) in the `https://developer.android.com/reference/androidx/wear/tiles/material/layouts/EdgeContentLayout`.

### MULTI_BUTTON_MAX_NUMBER

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public static final int MULTI_BUTTON_MAX_NUMBER = 7
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

The maximum number of button that can be added to the `https://developer.android.com/reference/androidx/wear/tiles/material/layouts/MultiButtonLayout`.

### MULTI_SLOT_LAYOUT_HORIZONTAL_SPACER_WIDTH

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public static final @NonNull DimensionBuilders.DpProp MULTI_SLOT_LAYOUT_HORIZONTAL_SPACER_WIDTH
```

> [!CAUTION]
> **This field is deprecated.**   
> Deprecated in Java

The default spacer width for slots in a `https://developer.android.com/reference/androidx/wear/tiles/material/layouts/MultiSlotLayout`.