fragment_bank.xml 1.9 KB
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="?actionBarSize"
        android:background="@color/white"
        android:orientation="horizontal"
        android:paddingStart="16dp"
        android:paddingEnd="16dp">

        <ImageView
            android:layout_width="87dp"
            android:layout_height="26dp"
            android:layout_gravity="center_vertical"
            android:background="@color/color_96"
            android:contentDescription="@string/logo" />

        <RelativeLayout
            android:id="@+id/search"
            android:layout_width="match_parent"
            android:layout_height="32dp"
            android:layout_gravity="center_vertical"
            android:layout_marginStart="8dp"
            android:background="@drawable/search_back">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerInParent="true"
                android:text="搜索"
                android:textColor="@color/white"
                android:textSize="14sp" />

            <ImageView
                android:layout_width="40dp"
                android:layout_height="28dp"
                android:layout_alignParentEnd="true"
                android:layout_centerVertical="true"
                android:layout_marginEnd="2dp"
                android:background="@drawable/solid_ff_14"
                android:contentDescription="@string/logo"
                android:paddingStart="12dp"
                android:paddingEnd="12dp"
                android:src="@mipmap/search" />
        </RelativeLayout>
    </LinearLayout>
</LinearLayout>