interface FloatLayout

Known direct subclasses
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 functions

Unit
layout(lf: Float, tf: Float, rf: Float, bf: Float)

To convert to regular layout l = (int)(0.5f + lf); You are expected to do your own measure if you need it.

Public functions

layout

Added in 2.2.0-alpha13
fun layout(lf: Float, tf: Float, rf: Float, bf: Float): Unit

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.