Published on December 14, 2016 by Android Developers

The new Layout Editor in Android Studio 2.2 has some surprises, including a new blueprint mode, revamped properties inspector and support for ConstraintLayout, a new way to define layouts for your apps.

In this Android Tool Time episode Wojtek Kaliciński shows you the basics of working with ConstraintLayouts in the visual editor. If you want to try it out yourself, you can find our codelab here: codelabs.developers.google.com/codelabs/constraint-layout

When you’re familiar with the layout editor interface, read the rest of our Medium article where you’ll find some more advanced tips and tricks for ConstraintLayout: medium.com/google-developers

Leave a Reply

23 Comments on "Building interfaces with ConstraintLayout in Android Studio"

Notify of
avatar

Miroslav Svítok
Guest
Miroslav Svítok
3 days 21 hours ago

this is great

Srinidhi Kowshik
Guest
Srinidhi Kowshik
15 days 5 hours ago

can anyone tell me how to revert to default relative layout from constraint layout in android studio 2.3, constraint layout is full of bugs,

Fahad Ayaz
Guest
Fahad Ayaz
14 days 13 hours ago

You should really be using a VCS, such as Git. It would be pretty trivial to rollback any changes. You could probably also use Android Studio's local history.

Srinidhi Kowshik
Guest
Srinidhi Kowshik
15 days 6 hours ago

full of bugs , google u suck at new things, make it stable before u automatically update, i hate u

InvestiGATOR
Guest
InvestiGATOR
23 days 29 minutes ago

do i need to add that code in build gradle in the final constraint layout version. i have it downloaded but i dont see that code in there. also does constraint layout or appcompat make my apps backwards compability go away. i need a min sdk of 17 target 25 at the moment.

bbnl vijayawad
Guest
bbnl vijayawad
1 month 8 days ago

We tried in many combinations with respect to hdpi with sizes.The output of the installed apk showing different for different screens you are request to suggest us which sie is suitable for(phone/tablet)respect to hdpi,xhdpi,xxhdpi,xxxhdpi.

JokAr Michael
Guest
JokAr Michael
2 months 5 days ago

why your build so fast?

Seven I
Guest
Seven I
1 month 5 days ago

They speed up the video….

Dev Landing
Guest
Dev Landing
1 month 24 days ago

I believe constraint layout is faster than relative layout. But he could've just fast forwarded the video when he builds the app.

a9595100
Guest
a9595100
2 months 22 days ago

Great video

Alexis Morin
Guest
Alexis Morin
3 months 4 days ago

This seems like an upgrade to RelativeLayout. Well done Android team!

Tu Yimin
Guest
Tu Yimin
3 months 4 days ago

FlexLayout is another approach, which use Java code directly in layout parameters. it's more powerful and easy to understand, but does not come with a fancy UI editor (you have to write code)

Roman Pavliuk
Guest
Roman Pavliuk
3 months 4 days ago

No roboto voice(

wpDiscuz