Android Constraint Layout
Android Constraint Layout
ConstraintLayout allows you to create large and complex layouts with a flat view
hierarchy (no nested view groups). It’s similar to RelativeLayout in that all views
are layed out according to relationships between sibling views and the parent
layout, but it’s more flexible than RelativeLayout and easier to use with Android
Studio’s Layout Editor.
Constraints overview
repositories {
maven {
url 'https://maven.google.com'
}
}
dependencies {
compile 'com.android.support.constraint:constraint-layout:1.0.2'
}
3. In the toolbar or sync notification, click Sync Project with Gradle Files.