Bogdan M. Bogdan M. - 1 year ago 233
Android Question

How to use the new Android Constraint Layout to reduce View hierarchy

Do you have any idea on how to use the new Constraint Layout that was recently announced at this year's Google I/O?

Answer Source

You can go to an existing layout resource file, open the visual editor and right-click on a RelativeLayout for example and click the option to convert to a constraint layout.

You have to add your compile dependency in build.gradle

compile ''