# 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)

*** ** * ** ***


```
class LayoutDefaults
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
>
> Use the new class `https://developer.android.com/reference/kotlin/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 |
|---|---|
| `const https://developer.android.com/reference/kotlin/androidx/wear/tiles/DimensionBuilders.DpProp` | `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/LayoutDefaults#DEFAULT_VERTICAL_SPACER_HEIGHT()` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/LayoutDefaults#EDGE_CONTENT_LAYOUT_PADDING_ABOVE_MAIN_CONTENT_DP() = 6.0f` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/LayoutDefaults#EDGE_CONTENT_LAYOUT_PADDING_BELOW_MAIN_CONTENT_DP() = 8.0f` **This property is deprecated.** Deprecated in Java |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/LayoutDefaults#MULTI_BUTTON_MAX_NUMBER() = 7` **This property is deprecated.** Deprecated in Java |
| `const https://developer.android.com/reference/kotlin/androidx/wear/tiles/DimensionBuilders.DpProp` | `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/LayoutDefaults#MULTI_SLOT_LAYOUT_HORIZONTAL_SPACER_WIDTH()` **This property 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)

```
const val DEFAULT_VERTICAL_SPACER_HEIGHT: DimensionBuilders.DpProp
```

> [!CAUTION]
> **This property 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)

```
const val EDGE_CONTENT_LAYOUT_PADDING_ABOVE_MAIN_CONTENT_DP = 6.0f: Float
```

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

The recommended padding that should be above the main content (text) in the `https://developer.android.com/reference/kotlin/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)

```
const val EDGE_CONTENT_LAYOUT_PADDING_BELOW_MAIN_CONTENT_DP = 8.0f: Float
```

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

The recommended padding that should be below the main content (text) in the `https://developer.android.com/reference/kotlin/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)

```
const val MULTI_BUTTON_MAX_NUMBER = 7: Int
```

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

The maximum number of button that can be added to the `https://developer.android.com/reference/kotlin/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)

```
const val MULTI_SLOT_LAYOUT_HORIZONTAL_SPACER_WIDTH: DimensionBuilders.DpProp
```

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

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