# BasicMeasure

Artifact: [androidx.constraintlayout:constraintlayout-core](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/core/widgets/analyzer/BasicMeasure.java+class:androidx.constraintlayout.core.widgets.analyzer.BasicMeasure) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

*** ** * ** ***


```
class BasicMeasure
```

<br />

*** ** * ** ***

Implements basic measure for linear resolution

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/BasicMeasure.Measure` |
| `interface https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/BasicMeasure.Measurer` |

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/BasicMeasure#AT_MOST() = -2147483648` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/BasicMeasure#EXACTLY() = 1073741824` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/BasicMeasure#FIXED() = -3` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/BasicMeasure#MATCH_PARENT() = -1` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/BasicMeasure#UNSPECIFIED() = 0` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/BasicMeasure#WRAP_CONTENT() = -2` |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/BasicMeasure#BasicMeasure(androidx.constraintlayout.core.widgets.ConstraintWidgetContainer)(constraintWidgetContainer: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/ConstraintWidgetContainer!)` |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/BasicMeasure#solverMeasure(androidx.constraintlayout.core.widgets.ConstraintWidgetContainer,int,int,int,int,int,int,int,int,int)( layout: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/ConstraintWidgetContainer!, optimizationLevel: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, paddingX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, paddingY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, widthMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, widthSize: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, heightMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, heightSize: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, lastMeasureWidth: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, lastMeasureHeight: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` Called by ConstraintLayout onMeasure() |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/BasicMeasure#updateHierarchy(androidx.constraintlayout.core.widgets.ConstraintWidgetContainer)(layout: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/ConstraintWidgetContainer!)` |

## Constants

### AT_MOST

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
const val AT_MOST = -2147483648: Int
```

### EXACTLY

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
const val EXACTLY = 1073741824: Int
```

### FIXED

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
const val FIXED = -3: Int
```

### MATCH_PARENT

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
const val MATCH_PARENT = -1: Int
```

### UNSPECIFIED

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
const val UNSPECIFIED = 0: Int
```

### WRAP_CONTENT

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
const val WRAP_CONTENT = -2: Int
```

## Public constructors

### BasicMeasure

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
BasicMeasure(constraintWidgetContainer: ConstraintWidgetContainer!)
```

## Public functions

### solverMeasure

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun solverMeasure(
    layout: ConstraintWidgetContainer!,
    optimizationLevel: Int,
    paddingX: Int,
    paddingY: Int,
    widthMode: Int,
    widthSize: Int,
    heightMode: Int,
    heightSize: Int,
    lastMeasureWidth: Int,
    lastMeasureHeight: Int
): Long
```

Called by ConstraintLayout onMeasure()

### updateHierarchy

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun updateHierarchy(layout: ConstraintWidgetContainer!): Unit
```