# DimensionBuilders.HorizontalLayoutConstraint

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/DimensionBuilders.java+class:androidx.wear.protolayout.DimensionBuilders.HorizontalLayoutConstraint) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

*** ** * ** ***


```
@RequiresSchemaVersion(major = 1, minor = 200)
class DimensionBuilders.HorizontalLayoutConstraint
```

<br />

*** ** * ** ***

A type for specifying horizontal layout constraints when using `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.DpProp` on a data bindable layout element.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.HorizontalLayoutConstraint.Builder : https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.DpPropLayoutConstraint.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.HorizontalLayoutConstraint`. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.HorizontalLayoutConstraint#getHorizontalAlignment()()` Gets the horizontal alignment of the actual content within the space reserved by value. |
| `@https://developer.android.com/reference/kotlin/androidx/annotation/Dimension(unit = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.HorizontalLayoutConstraint#getValue()()` Gets the value to use when laying out components which can have a dynamic value. |

| ### Protected properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/Fingerprint?` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.HorizontalLayoutConstraint#mFingerprint()` |
| `androidx.wear.protolayout.proto.DimensionProto.DpProp!` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.HorizontalLayoutConstraint#mImpl()` |

## Public functions

### getHorizontalAlignment

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

```
fun getHorizontalAlignment(): Int
```

Gets the horizontal alignment of the actual content within the space reserved by value.

### getValue

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

```
fun getValue(): @Dimension(unit = 0) Float
```

Gets the value to use when laying out components which can have a dynamic value. Constrains the layout so that components are not changing size or location regardless of the dynamic value that is being provided.

## Protected properties

### mFingerprint

```
protected val mFingerprint: Fingerprint?
```

### mImpl

```
protected val mImpl: androidx.wear.protolayout.proto.DimensionProto.DpProp!
```