<?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="match_parent"
    android:background="@color/qfpay_bg"
    android:orientation="vertical"
    android:paddingBottom="6dp"
    android:paddingLeft="10dp"
    android:paddingRight="10dp"
    android:paddingTop="10dp">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="0px"
        android:layout_weight="1"
        android:background="@drawable/qfpay_input_amount"
        android:orientation="vertical">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="0px"
            android:layout_gravity="center"
            android:layout_weight="1.60"
            android:paddingLeft="10dp"
            android:paddingRight="10dp">

            <FrameLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="bottom|center_horizontal"
                    android:gravity="center_horizontal"
                    android:orientation="vertical">

                    <!-- 交易结果的图片 -->

                    <ImageView
                        android:id="@+id/iv_image"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content" />
                    <!-- 交易结果的文字 -->

                    <TextView
                        android:id="@+id/tv_result"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:paddingBottom="5dp"
                        android:textColor="@color/textblack"
                        android:textSize="@dimen/qfpay_large" />
                </LinearLayout>

            </FrameLayout>
        </LinearLayout>

        <View
            android:layout_width="match_parent"
            android:layout_height="1px"
            android:layout_marginLeft="10dp"
            android:layout_marginRight="10dp"
            android:background="@drawable/qfpay_spline" />

        <FrameLayout
            android:layout_width="match_parent"
            android:layout_height="0px"
            android:layout_weight="1">


            <!-- 交易成功后的交易详情文字 -->

            <LinearLayout
                android:id="@+id/linear_success_text"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:layout_marginLeft="10dip"
                android:orientation="horizontal">

                <LinearLayout
                    android:id="@+id/layout_marchant"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_vertical|left"
                    android:layout_weight="1"
                    android:gravity="center"
                    android:orientation="vertical">

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

                        <TextView
                            android:id="@+id/tv_merchant"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@string/result_merchant_name"
                            android:textColor="@color/darkgray"
                            android:textSize="@dimen/qfpay_medium" />

                        <TextView
                            android:id="@+id/tv_amount"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@string/result_deal_amount"
                            android:textColor="@color/darkgray"
                            android:textSize="@dimen/qfpay_medium" />

                    </LinearLayout>

                </LinearLayout>

            </LinearLayout>
        </FrameLayout>
    </LinearLayout>

    <!-- bottom -->

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:paddingTop="5dp">

        <LinearLayout
            android:id="@+id/payment_layout"
            android:layout_width="match_parent"
            android:layout_height="@dimen/qfpay_button_height">

            <Button
                android:id="@+id/btn_payment_one"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@drawable/qfpay_trade_cloud_selsetor"
                android:gravity="center"
                android:text="@string/deal_finish"
                android:textColor="@android:color/white"
                android:textSize="@dimen/qfpay_medium" />

        </LinearLayout>

        <LinearLayout
            android:id="@+id/repeal_layout"
            android:layout_width="match_parent"
            android:layout_height="@dimen/qfpay_button_height">

            <Button
                android:id="@+id/btn_repeal_one"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@drawable/qfpay_trade_cloud_selsetor"
                android:gravity="center"
                android:text="@string/repeal_finish"
                android:textColor="@android:color/white"
                android:textSize="@dimen/qfpay_medium" />

        </LinearLayout>

    </LinearLayout>

</LinearLayout>