# CustomFloatAttributes

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

*** ** * ** ***


```
public interface CustomFloatAttributes
```

<br />

*** ** * ** ***

Interface to custom float attributes

## Summary

| ### Public methods |
|---|---|
| `abstract float` | `https://developer.android.com/reference/androidx/constraintlayout/motion/widget/CustomFloatAttributes#get(java.lang.String)(https://developer.android.com/reference/java/lang/String.html attribute)` get the value of the attributes |
| `abstract String[]` | `https://developer.android.com/reference/androidx/constraintlayout/motion/widget/CustomFloatAttributes#getListOfAttributes()()` Get list of attributes |
| `abstract void` | `https://developer.android.com/reference/androidx/constraintlayout/motion/widget/CustomFloatAttributes#set(java.lang.String,float)(https://developer.android.com/reference/java/lang/String.html attribute, float value)` set the attributes |

## Public methods

### get

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

```
abstract float get(String attribute)
```

get the value of the attributes

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html attribute` |   |

| Returns |
|---|---|
| `float` |   |

### getListOfAttributes

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

```
abstract String[] getListOfAttributes()
```

Get list of attributes

| Returns |
|---|---|
| `String[]` |   |

### set

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

```
abstract void set(String attribute, float value)
```

set the attributes

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html attribute` |   |
| `float value` |   |