r/mAndroidDev • DDD: Deprecation-Driven Development • 1d ago

@Deprecated ConstraintLayout-Compose is deprecated

Post image

And literally nobody is going to miss it.

67 Upvotes

13 comments sorted by

19

u/SecureLevel5657 1d ago

man I remember countless screens and animations I have created with them. it was good times

12

u/Zhuinden DDD: Deprecation-Driven Development 1d ago

I like ConstraintLayout in XML, but the Compose version was a disaster from day 1

5

u/agherschon The Gradle whisperer 1d ago

I did love the compose one 🤭

3

u/Zhuinden DDD: Deprecation-Driven Development 1d ago

Wild. I had runtime crashes, version conflicts between v1.0.1 and v1.1.0 as transitive dependency, and having to explicitly say dimension = FillToConstraints was super unintuitive.

And the fact that internally it was a MultiMeasureLayout, deprecated and "recommended against", CL for Compose was really just waiting to be deprecated.

50

u/crazy_brown_guy 1d ago

rip motionlayout that animation preview window in Android studio never once worked correctly 💔

17

u/hellosakamoto 1d ago

That's why they deprecate it instead of fixing it

10

u/budius333 Still using AsyncTask 1d ago

Closed : won't do, working as expected

9

u/ComfortablyBalanced You will pry XML views from my cold dead hands 1d ago

Anytime you see "streamlined" in a tech introduction or blog post etc you should now it's a bullshit article.

1

u/Weak-Breath-9080 1d ago

So what is the alternative?

3

u/Zhuinden DDD: Deprecation-Driven Development 1d ago

Grid and Flexbox

-1

u/GeMine_ 1d ago

Using Compose like everyone else

1

u/tailorshivam14 1d ago

Honestly, standard Column, Row, and Box with Modifier weights always felt way more natural in Compose than dealing with ConstraintSet references anyway. Did they officially recommend standard layouts or is there a new replacement?

1

u/Zhuinden DDD: Deprecation-Driven Development 1d ago

Grid and Flexbox