<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/main" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:gravity="center" tools:context=".MainActivity"> <include layout="@layout/list_name" /> <View android:layout_width="fill_parent" android:layout_marginTop="0dp" android:layout_height="1dp" android:layout_marginLeft="5dp" android:layout_marginRight="5dp" android:background="#aa000000" /> <ListView android:id="@+id/list_view" android:layout_width="wrap_content" android:layout_height="650dp" /> <View android:layout_width="fill_parent" android:layout_marginTop="10dp" android:layout_height="1dp" android:layout_marginLeft="5dp" android:layout_marginRight="5dp" android:background="#aa000000" /> <include layout="@layout/total"/> </LinearLayout>标签:2.06 From: https://www.cnblogs.com/luoqingci/p/18040451