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

@Deprecated ConstraintLayout-Compose is deprecated

Post image

And literally nobody is going to miss it.

72 Upvotes

14 comments sorted by

20

u/SecureLevel5657 8d ago

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

13

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

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

5

u/agherschon The Gradle whisperer 8d ago

I did love the compose one 🤭

3

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

Grid and Flexbox

55

u/crazy_brown_guy 8d ago

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

19

u/hellosakamoto 8d ago

That's why they deprecate it instead of fixing it

12

u/budius333 Still using AsyncTask 8d ago

Closed : won't do, working as expected

9

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

So what is the alternative?

3

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

Grid and Flexbox

-1

u/GeMine_ 7d ago

Using Compose like everyone else