# ModifiersBuilders.Padding

# ModifiersBuilders.Padding

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)  
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 "View this page in Java")

<br />

```
@RequiresSchemaVersion(major = 1, minor = 0)
class ModifiersBuilders.Padding
```

<br />

*** ** * ** ***

A modifier to apply padding around an element.

## Summary

|                                                                                                                                 ### Nested types                                                                                                                                 |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[ModifiersBuilders.Padding.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding.Builder) Builder for[Padding](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding) |

|                                                       ### Public functions                                                       |
|----------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [DimensionBuilders.DpProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.DpProp)`?` | [getBottom](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding#getBottom())`()` Gets the padding at the bottom, in DP.                                                                             |
| [DimensionBuilders.DpProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.DpProp)`?` | [getEnd](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding#getEnd())`()` Gets the padding on the end of the content, depending on the layout direction, in DP and the value of "rtl_aware".       |
| [TypeBuilders.BoolProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/TypeBuilders.BoolProp)`?`       | [getRtlAware](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding#getRtlAware())`()` Gets whether the start/end padding is aware of RTL support.                                                    |
| [DimensionBuilders.DpProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.DpProp)`?` | [getStart](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding#getStart())`()` Gets the padding on the start of the content, depending on the layout direction, in DP and the value of "rtl_aware". |
| [DimensionBuilders.DpProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.DpProp)`?` | [getTop](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding#getTop())`()` Gets the padding at the top, in DP.                                                                                      |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                                | [toString](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Padding#toString())`()`                                                                                                                      |

## Public functions

### getBottom

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

```
fun getBottom(): DimensionBuilders.DpProp?
```

Gets the padding at the bottom, in DP.

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

### getEnd

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

```
fun getEnd(): DimensionBuilders.DpProp?
```

Gets 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.  

### getRtlAware

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

```
fun getRtlAware(): TypeBuilders.BoolProp?
```

Gets 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.  

### getStart

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

```
fun getStart(): DimensionBuilders.DpProp?
```

Gets 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.  

### getTop

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

```
fun getTop(): DimensionBuilders.DpProp?
```

Gets the padding at the top, in DP.

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

### toString

```
fun toString(): String
```