fragment_wallet_amount_choice.xml 3.62 KB
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/payment_common_bg" >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical" >

        <TextView
            android:id="@+id/choice_title"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@drawable/header_tip_bg"
            android:gravity="center_vertical"
            android:paddingLeft="10dp"
            android:text="@string/amount_choice_tip"
            android:textColor="@color/black_text" />

        <RelativeLayout
            android:id="@+id/amount_choice"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="13dp"
            android:layout_marginRight="13dp"
            android:layout_marginTop="16dp"
            android:background="@drawable/choice_box_bg" >

            <TextView
                android:id="@+id/tv_amount"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerVertical="true"
                android:layout_marginLeft="15dp"
                android:textColor="@color/black_text"
                android:textSize="18sp"
                android:textStyle="italic"
                android:text="50d" />

            <ImageView
                android:id="@+id/arrow_tag"
                android:layout_width="35dp"
                android:layout_height="35dp"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:scaleType="center"
                android:src="@drawable/ic_arrow_down" />

            <View
                android:layout_width="1dp"
                android:layout_height="match_parent"
                android:layout_centerVertical="true"
                android:layout_toLeftOf="@id/arrow_tag"
                android:background="@drawable/split_vertical" />
        </RelativeLayout>

        <Button
            android:id="@+id/pay"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="20dp"
            android:layout_marginLeft="13dp"
            android:layout_marginRight="13dp"
            android:layout_marginTop="23dp"
            android:layout_weight="3"
            android:background="@drawable/btn_orange_bg"
            android:text="@string/pay_ok"
            android:textColor="@android:color/white" />

        <TextView
            android:id="@+id/summary_title"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="13dp"
            android:layout_marginRight="13dp"
            android:background="@color/summary_bg"
            android:paddingLeft="10dp"
            android:textColor="@color/black_text"
            android:textSize="12sp" />

        <TextView
            android:id="@+id/intro"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="10dp"
            android:layout_marginLeft="13dp"
            android:layout_marginRight="13dp"
            android:background="@color/summary_bg"
            android:padding="8dp"
            android:textColor="@color/black_text" />
    </LinearLayout>

</ScrollView>