LinearLayout布局
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/93f10fccea2cfc825ce17b6f6142f1b5.png)
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/line_border"
android:divider="@color/black"
android:orientation="vertical"
android:showDividers="beginning|middle">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/resume" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle"
android:weightSum="6">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="5"
android:divider="@color/black"
android:orientation="vertical"
android:showDividers="beginning|middle">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center_vertical"
android:text="@string/name" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/gender" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/age" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/birthday" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/city" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/engaged" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/education" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/nation" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/marriage" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/id" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/nativePlace" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/registeredResidence" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/graduateSchool" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/computerSkills" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
</LinearLayout>
</LinearLayout>
<ImageView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:contentDescription="@string/blank"
android:src="@color/teal_200" />
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:text="@string/familyMembers" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="5"
android:divider="@color/black"
android:orientation="vertical"
android:showDividers="beginning|middle">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/name" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="@string/memberRelationship" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/job" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/placeOfWork" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="2"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="2"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="2"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
TableLayout布局
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/fb13045b066c08a9062de36b7ca33428.png)
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/line_border"
android:divider="@color/black"
android:orientation="vertical"
android:showDividers="beginning|middle">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/resume" />
<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle"
android:weightSum="6">
<TableLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="5"
android:divider="@color/black"
android:orientation="vertical"
android:showDividers="beginning|middle">
<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center_vertical"
android:text="@string/name" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/gender" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/age" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/birthday" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/city" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/engaged" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/education" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/nation" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/marriage" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/id" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/nativePlace" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/registeredResidence" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/graduateSchool" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/computerSkills" />
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
</TableRow>
</TableLayout>
<ImageView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:contentDescription="@string/graduateSchool"
android:src="@color/teal_200" />
</TableRow>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:text="@string/familyMembers" />
<TableLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="5"
android:divider="@color/black"
android:orientation="vertical"
android:showDividers="beginning|middle">
<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/name" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="@string/memberRelationship" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/job" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/placeOfWork" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="2"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="2"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/black"
android:orientation="horizontal"
android:showDividers="beginning|middle">
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="2"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:autofillHints=""
android:background="@drawable/line_transparent"
android:hint="@string/blank"
android:inputType="text" />
</TableRow>
</TableLayout>
</TableRow>
</TableLayout>