<?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="wrap_content" android:background="@color/white" android:orientation="vertical"> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <ImageView android:id="@+id/butn_close" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:foreground="?selectableItemBackground" android:padding="@dimen/padding10" android:src="@drawable/ic_baseline_chevron_left_24" /> <TextView android:id="@+id/txt_header" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:gravity="center" android:padding="@dimen/padding10" android:text="设置" android:textColor="@color/textSecondPrimary" android:textSize="@dimen/ts_header_text" android:textStyle="bold" /> </RelativeLayout> <include layout="@layout/view_line" android:layout_width="match_parent" android:layout_height="wrap_content" /> </LinearLayout>