<?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" 
                        android:src="@drawable/qfpay_fail"
                    />
                    <!-- 交易结果的文字 -->

                    <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" />

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="0px"
            android:layout_weight="1" 
            android:orientation="vertical"
        >

            <!-- 交易结果的文字 -->
            <TextView
                android:id="@+id/tv_tips"
                android:layout_width="wrap_content"
                android:layout_height="30dp"
                android:layout_weight="1"
                android:gravity="center"
                android:layout_gravity="center"
                android:textColor="@color/textblack"
                android:textSize="@dimen/qfpay_medium"
             />
            
            <TextView
                android:id="@+id/tv_import_advice"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="bottom"
                android:layout_gravity="center"
                android:textColor="@color/gray"
                android:textSize="@dimen/qfpay_small"
                android:paddingLeft="10dp"
                android:paddingRight="10dp"
                android:paddingBottom="2dp"
                android:text="@string/fail_import_tip"
                android:visibility="gone"
             />
            

        </LinearLayout>
    </LinearLayout>

    <!-- bottom -->

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:layout_marginTop="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="0px"
                android:layout_height="match_parent"
                android:layout_weight="1"
                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" />

            <View
                android:id="@+id/payment_gap"
                android:layout_width="20dp"
                android:layout_height="1px"
                android:visibility="gone" />

            <Button
                android:id="@+id/btn_payment_two"
                android:layout_width="0px"
                android:layout_height="match_parent"
                android:layout_weight="1"
                android:background="@drawable/qfpay_trade_cloud_selsetor"
                android:gravity="center"
                android:text="@string/return_main"
                android:textColor="@android:color/white"
                android:textSize="@dimen/qfpay_medium"
                android:visibility="gone" />
        </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="0px"
                android:layout_height="match_parent"
                android:layout_weight="1"
                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" />

            <View
                android:id="@+id/repeal_gap"
                android:layout_width="20dp"
                android:layout_height="1px" />

            <Button
                android:id="@+id/btn_repeal_two"
                android:layout_width="0px"
                android:layout_height="match_parent"
                android:layout_weight="1"
                android:background="@drawable/qfpay_trade_cloud_selsetor"
                android:gravity="center"
                android:text="@string/try_again"
                android:textColor="@android:color/white"
                android:textSize="@dimen/qfpay_medium" />
        </LinearLayout>
        
    </LinearLayout>

</LinearLayout>