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

@Deprecated ConstraintLayout-Compose is deprecated

Post image

And literally nobody is going to miss it.

71 Upvotes

13 comments sorted by

20

u/SecureLevel5657 5d ago

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

13

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

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

5

u/agherschon The Gradle whisperer 5d ago

I did love the compose one 🤭

3

u/Zhuinden DDD: Deprecation-Driven Development 5d 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.

2

u/tailorshivam14 5d 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 4d ago

Grid and Flexbox

55

u/crazy_brown_guy 5d ago

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

19

u/hellosakamoto 5d ago

That's why they deprecate it instead of fixing it

12

u/budius333 Still using AsyncTask 5d ago

Closed : won't do, working as expected

9

u/ComfortablyBalanced You will pry XML views from my cold dead hands 5d 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 5d ago

So what is the alternative?

3

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

Grid and Flexbox

-1

u/GeMine_ 4d ago

Using Compose like everyone else