FloatLayout

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 methods

abstract @NonNull void
layout(
    @NonNull float lf,
    @NonNull float tf,
    @NonNull float rf,
    @NonNull 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

@NonNull
public abstract void layout(
    @NonNull float lf,
    @NonNull float tf,
    @NonNull float rf,
    @NonNull 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.