view_header.xml 1.37 KB
Newer Older
wjg committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<?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"
wjg committed
15
            android:foreground="?selectableItemBackground"
wjg committed
16
            android:padding="@dimen/padding10"
wjg committed
17 18
            android:src="@drawable/ic_baseline_chevron_left_24" />
        <TextView
wjg committed
19
            android:id="@+id/txt_header"
wjg committed
20 21 22 23
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:gravity="center"
wjg committed
24
            android:padding="@dimen/padding10"
wjg committed
25 26
            android:text="设置"
            android:textColor="@color/textSecondPrimary"
wjg committed
27
            android:textSize="@dimen/ts_header_text"
wjg committed
28 29 30 31 32 33 34
            android:textStyle="bold" />
    </RelativeLayout>
    <include
        layout="@layout/view_line"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />
</LinearLayout>