# ModifiersBuilders.Padding.Builder

# ModifiersBuilders.Padding.Builder

Artifact:[androidx.wear.protolayout:protolayout](https://developer.android.com/jetpack/androidx/releases/wear-protolayout)  
[View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/ModifiersBuilders.java+class:androidx.wear.protolayout.ModifiersBuilders.Padding.Builder)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.Padding.Builder "View this page in Java")

<br />

```
class ModifiersBuilders.Padding.Builder
```

<br />

*** ** * ** ***

Builder for[Padding](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding)

## Summary

|                                                                                                                             ### Public constructors                                                                                                                              |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding.Builder#Builder())`()` Creates an instance of[Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding.Builder). |

|                                                              ### Public functions                                                               |
|-------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ModifiersBuilders.Padding](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding)                 | [build](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding.Builder#build())`()` Builds an instance from accumulated values.                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [ModifiersBuilders.Padding.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding.Builder) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` [setAll](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding.Builder#setAll(androidx.wear.protolayout.DimensionBuilders.DpProp))`(value: `[DimensionBuilders.DpProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.DpProp)`)` Sets the padding for all sides of the content, in DP.                                                                    |
| [ModifiersBuilders.Padding.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding.Builder) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` [setBottom](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding.Builder#setBottom(androidx.wear.protolayout.DimensionBuilders.DpProp))`(bottom: `[DimensionBuilders.DpProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.DpProp)`)` Sets the padding at the bottom, in DP.                                                                            |
| [ModifiersBuilders.Padding.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding.Builder) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` [setEnd](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding.Builder#setEnd(androidx.wear.protolayout.DimensionBuilders.DpProp))`(end: `[DimensionBuilders.DpProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.DpProp)`)` Sets the padding on the end of the content, depending on the layout direction, in DP and the value of "rtl_aware".         |
| [ModifiersBuilders.Padding.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding.Builder) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` [setRtlAware](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding.Builder#setRtlAware(boolean))`(rtlAware: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Sets whether the start/end padding is aware of RTL support.                                                                                                                                      |
| [ModifiersBuilders.Padding.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding.Builder) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` [setRtlAware](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding.Builder#setRtlAware(androidx.wear.protolayout.TypeBuilders.BoolProp))`(rtlAware: `[TypeBuilders.BoolProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/TypeBuilders.BoolProp)`)` Sets whether the start/end padding is aware of RTL support.                                                          |
| [ModifiersBuilders.Padding.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding.Builder) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` [setStart](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding.Builder#setStart(androidx.wear.protolayout.DimensionBuilders.DpProp))`(start: `[DimensionBuilders.DpProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.DpProp)`)` Sets the padding on the start of the content, depending on the layout direction, in DP and the value of "rtl_aware". |
| [ModifiersBuilders.Padding.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding.Builder) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` [setTop](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding.Builder#setTop(androidx.wear.protolayout.DimensionBuilders.DpProp))`(top: `[DimensionBuilders.DpProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.DpProp)`)` Sets the padding at the top, in DP.                                                                                        |

## Public constructors

### Builder

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  

```
Builder()
```

Creates an instance of[Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding.Builder).  

## Public functions

### build

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  

```
fun build(): ModifiersBuilders.Padding
```

Builds an instance from accumulated values.  

### setAll

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  

```
@RequiresSchemaVersion(major = 1, minor = 0)
fun setAll(value: DimensionBuilders.DpProp): ModifiersBuilders.Padding.Builder
```

Sets the padding for all sides of the content, in DP.

Note that negative values are supported on schema versions of 1.6 or higher.

Note that this field only supports static values.  

### setBottom

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  

```
@RequiresSchemaVersion(major = 1, minor = 0)
fun setBottom(bottom: DimensionBuilders.DpProp): ModifiersBuilders.Padding.Builder
```

Sets the padding at the bottom, in DP.

Note that negative values are supported on schema versions of 1.6 or higher.

Note that this field only supports static values.  

### setEnd

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  

```
@RequiresSchemaVersion(major = 1, minor = 0)
fun setEnd(end: DimensionBuilders.DpProp): ModifiersBuilders.Padding.Builder
```

Sets the padding on the end of the content, depending on the layout direction, in DP and the value of "rtl_aware".

Note that negative values are supported on schema versions of 1.6 or higher.

Note that this field only supports static values.  

### setRtlAware

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  

```
@RequiresSchemaVersion(major = 1, minor = 0)
fun setRtlAware(rtlAware: Boolean): ModifiersBuilders.Padding.Builder
```

Sets whether the start/end padding is aware of RTL support. If true, the values for start/end will follow the layout direction (i.e. start will refer to the right hand side of the container if the device is using an RTL locale). If false, start/end will always map to left/right, accordingly.  

### setRtlAware

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  

```
@RequiresSchemaVersion(major = 1, minor = 0)
fun setRtlAware(rtlAware: TypeBuilders.BoolProp): ModifiersBuilders.Padding.Builder
```

Sets whether the start/end padding is aware of RTL support. If true, the values for start/end will follow the layout direction (i.e. start will refer to the right hand side of the container if the device is using an RTL locale). If false, start/end will always map to left/right, accordingly.

Note that this field only supports static values.  

### setStart

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  

```
@RequiresSchemaVersion(major = 1, minor = 0)
fun setStart(start: DimensionBuilders.DpProp): ModifiersBuilders.Padding.Builder
```

Sets the padding on the start of the content, depending on the layout direction, in DP and the value of "rtl_aware".

Note that negative values are supported on schema versions of 1.6 or higher.

Note that this field only supports static values.  

### setTop

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)  

```
@RequiresSchemaVersion(major = 1, minor = 0)
fun setTop(top: DimensionBuilders.DpProp): ModifiersBuilders.Padding.Builder
```

Sets the padding at the top, in DP.

Note that negative values are supported on schema versions of 1.6 or higher.

Note that this field only supports static values.