예를 들어 보겠습니다.
<!---------------------------------- main.xml ------------------------------------------------->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/newlayout"/> <!-- xml 이름으로 레이아웃을 추가합니다 -->
</LinearLayout>
<!--------------------------------------newlayout.xml --------------------------------------->
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="새로운 레이아웃"/>
</LinearLayout>
