使用include标签 <include android:layout_width="match_parent" android:layout_height="match_parent" layout="@layout/yourlayout" />