See: https://developer.android.com/training/improving-layouts/reusing-layout code example
Example: include android studio
<!-- Importation de notre Toolbar -->
<include
layout="@layout/fichier_a_inclure"
android:layout_width="match_parent"
android:layout_height="wrap_content" />