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

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

Notify of
avatar

Mr. Business
Guest
Mr. Business
20 days 22 hours ago

Worst decision ever.. You even make it a pain in the ass to get rid of it..Why?

Coding in Flow
Guest
Coding in Flow
2 months 9 days ago

Awesome! I've made a detailed tutorial on my channel

Seni Joshua
Guest
Seni Joshua
2 months 10 days ago

Honestly. ConstraintLayout for simple layouts…definitely worth the performance increase. However, for complex layouts and even using it with a RecyclerView is clunky. Try positioning a recycler view beneath a toolbar in a constraintLayout. I thought they'd have ironed out the kinks at Google by now but alas, they still have to go back to the drawing board.

DesireFanatics
Guest
DesireFanatics
2 months 10 days ago

Very simple and to the point – thank you

Alejandro Martínez
Guest
Alejandro Martínez
2 months 29 days ago

Thanks.

Mac Taylor
Guest
Mac Taylor
3 months 4 days ago

Is constraint layouts better for if you are developing for multiple screen sizes? If not what is the best way to do it?

metin silsüpür
Guest
metin silsüpür
4 months 3 days ago

mycaps=?????????????

Nakul Singh
Guest
Nakul Singh
4 months 9 days ago

This sucks

Ash B
Guest
Ash B
4 months 13 days ago

Love it 🙂

jetliFAN
Guest
jetliFAN
4 months 17 days ago
I like constraint layout but it has MAJOR flaws. The biggest being it doesn't work if you're using softInputMode. If you're using an editText or you create a searchView, once that keyboard pops up, everything within that constraint layout moves. Buttons, labels, mapView. They all jump. This happens when you constrain the buttons/labels/mapViews down to the view. In Constraint Layout you can't not have something Constrained down to the view or else it'll look weird on different size devices.Is this a ConstraintLayout bug? RelativeLayout doesn't have this issue so I'm thinking of re-doing my XML files to RelativeLayout.Is there a… Read more »
1 2 3 8
wpDiscuz