1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4.     xmlns:tools="http://schemas.android.com/tools"
  5.     android:layout_width="match_parent"
  6.     android:layout_height="match_parent"
  7.     tools:context="dev.hienlt.my.MainActivity">
  8.  
  9.     <ImageView
  10.         android:layout_width="match_parent"
  11.         android:layout_height="match_parent"
  12.         android:scaleType="centerCrop"
  13.         android:src="@drawable/test2"/>
  14.  
  15.     <dev.hienlt.my.OverlayLayout
  16.         android:layout_width="match_parent"
  17.         android:layout_height="match_parent"
  18.         app:layout_constraintBottom_toBottomOf="parent"
  19.         app:layout_constraintEnd_toEndOf="parent"
  20.         app:layout_constraintStart_toStartOf="parent"
  21.         app:layout_constraintTop_toTopOf="parent" />
  22.  
  23. </android.support.constraint.ConstraintLayout>