sub_layout_titlebar.xml 1.14 KB
Newer Older
tangguangrui committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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:layout_width="match_parent"
    android:layout_height="48dp"
    tools:context=".MainActivity"
    android:background="@android:color/white">

    <TextView
        android:id="@+id/titleTv"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:text="XX"
16
        android:textSize="20sp"
tangguangrui committed
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
        android:textColor="#000000"
        android:textStyle="bold"/>

    <ImageView
        android:id="@+id/backBtn"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:padding="5dp"
        android:layout_centerVertical="true"
        android:src="@mipmap/ic_return"
        android:layout_marginLeft="10dp"/>

    <TextView
        android:layout_width="match_parent"
        android:layout_height="1px"
        android:background="#E0E0E0"
        android:layout_alignParentBottom="true"/>

</RelativeLayout>