# FloatLayout

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/FloatLayout.java+class:androidx.constraintlayout.motion.widget.FloatLayout) Added in [2.2.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#2.2.2)

*** ** * ** ***


```
public interface FloatLayout
```

<br />

Known direct subclasses [MotionLabel](https://developer.android.com/reference/androidx/constraintlayout/utils/widget/MotionLabel)

|---|---|
| `https://developer.android.com/reference/androidx/constraintlayout/utils/widget/MotionLabel` | This class is designed to create complex animated single line text in MotionLayout. |

*** ** * ** ***

Add support to views that do floating point layout. This can be useful to allow objects within the view to animate smoothly

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/constraintlayout/motion/widget/FloatLayout#layout(float,float,float,float)(float lf, float tf, float rf, float bf)` To convert to regular layout l = (int)(0.5f + lf); You are expected to do your own measure if you need it. |

## Public methods

### layout

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

```
abstract void layout(float lf, float tf, float rf, float bf)
```

To convert to regular layout l = (int)(0.5f + lf); You are expected to do your own measure if you need it. This will be called only during animation.