# ConstraintAttribute.AttributeType

Artifact: [androidx.constraintlayout:constraintlayout](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/widget/ConstraintAttribute.java+class:androidx.constraintlayout.widget.ConstraintAttribute.AttributeType) Added in [2.2.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#2.2.2)

*** ** * ** ***


```
enum ConstraintAttribute.AttributeType
```

<br />

*** ** * ** ***

## Summary

| ### Enum Values |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/widget/ConstraintAttribute.AttributeType#BOOLEAN_TYPE` |   |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/widget/ConstraintAttribute.AttributeType#COLOR_DRAWABLE_TYPE` |   |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/widget/ConstraintAttribute.AttributeType#COLOR_TYPE` |   |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/widget/ConstraintAttribute.AttributeType#DIMENSION_TYPE` |   |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/widget/ConstraintAttribute.AttributeType#FLOAT_TYPE` |   |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/widget/ConstraintAttribute.AttributeType#INT_TYPE` |   |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/widget/ConstraintAttribute.AttributeType#REFERENCE_TYPE` |   |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/widget/ConstraintAttribute.AttributeType#STRING_TYPE` |   |

| ### Public functions |
|---|---|
| `java-static https://developer.android.com/reference/kotlin/androidx/constraintlayout/widget/ConstraintAttribute.AttributeType!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/widget/ConstraintAttribute.AttributeType#valueOf(java.lang.String)(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` Returns the enum constant of this type with the specified name. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/constraintlayout/widget/ConstraintAttribute.AttributeType!>!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/widget/ConstraintAttribute.AttributeType#values()()` Returns an array containing the constants of this enum type, in the order they're declared. |

## Enum Values

### BOOLEAN_TYPE

```
val ConstraintAttribute.AttributeType.BOOLEAN_TYPE: ConstraintAttribute.AttributeType
```

### COLOR_DRAWABLE_TYPE

```
val ConstraintAttribute.AttributeType.COLOR_DRAWABLE_TYPE: ConstraintAttribute.AttributeType
```

### COLOR_TYPE

```
val ConstraintAttribute.AttributeType.COLOR_TYPE: ConstraintAttribute.AttributeType
```

### DIMENSION_TYPE

```
val ConstraintAttribute.AttributeType.DIMENSION_TYPE: ConstraintAttribute.AttributeType
```

### FLOAT_TYPE

```
val ConstraintAttribute.AttributeType.FLOAT_TYPE: ConstraintAttribute.AttributeType
```

### INT_TYPE

```
val ConstraintAttribute.AttributeType.INT_TYPE: ConstraintAttribute.AttributeType
```

### REFERENCE_TYPE

```
val ConstraintAttribute.AttributeType.REFERENCE_TYPE: ConstraintAttribute.AttributeType
```

### STRING_TYPE

```
val ConstraintAttribute.AttributeType.STRING_TYPE: ConstraintAttribute.AttributeType
```

## Public functions

### valueOf

Added in 2.2.2

```
java-static fun valueOf(name: String!): ConstraintAttribute.AttributeType!
```

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/widget/ConstraintAttribute.AttributeType!` | the enum constant with the specified name |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if this enum type has no constant with the specified name |

### values

Added in 2.2.2

```
java-static fun values(): Array<ConstraintAttribute.AttributeType!>!
```

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/constraintlayout/widget/ConstraintAttribute.AttributeType!>!` | an array containing the constants of this enum type, in the order they're declared |