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

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

Notify of
avatar

Coding in Flow
Guest
Coding in Flow
10 days 19 hours ago

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

Seni Joshua
Guest
Seni Joshua
12 days 9 hours 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
12 days 9 hours ago

Very simple and to the point – thank you

Alejandro Martínez
Guest
Alejandro Martínez
1 month 1 hour ago

Thanks.

Mac Taylor
Guest
Mac Taylor
1 month 6 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
2 months 4 days ago

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

Nakul Singh
Guest
Nakul Singh
2 months 11 days ago

This sucks

Ash B
Guest
Ash B
2 months 14 days ago

Love it 🙂

jetliFAN
Guest
jetliFAN
2 months 19 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 »
jetliFAN
Guest
jetliFAN
2 months 19 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