androidx / constraintlayout

ConstraintLayout is an Android layout component which allows you to position and size widgets in a flexible way
Apache License 2.0
1.07k stars 176 forks source link

Motion benchmark #697

Closed oscar-ad closed 2 years ago

oscar-ad commented 2 years ago

Adds Macrobenchark tests.

UI code to be measured is in macrobenchmark-app. See MotionLayoutBenchmarkActivity.

Test code to run the benchmark is in the submodule macrobenchmark-app.benchmark. See MotionLayoutMacrobenchmark.

Also fixed a minor issue with MotionLayout.

oscar-ad commented 2 years ago

Here are examples of the UI benchmarked for this PR

NewMessage

benchmarkMessage.webm

CollapsibleToolbar

benchmarkToolbar.webm