In addition to RelativeLayout
, FrameLayout
, LinearLayout
, TableLayout
, among others already existing, that greatly meet the needs related to layout , Google announced Google I / O 2016 or ConstraintLayout
". Here is an example:
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
</android.support.constraint.ConstraintLayout>
- Noting that it has a lot of similarity to
RelativeLayout
, what would be the difference between the two? - When should I use
ConstraintLayout
?