rbgame_dialog_payment.xml 15.1 KB
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="330dp"
    android:layout_height="match_parent">

    <LinearLayout
        android:id="@+id/normal_pay"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_gravity="center"
        android:layout_marginTop="24dp"

        android:layout_marginBottom="24dp"
        android:background="@drawable/rbgame_bg_shape_fff_7_5dp"
        android:orientation="vertical"
        android:paddingStart="15dp"
        android:paddingEnd="15dp">

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dp"
            android:visibility="visible">
            <LinearLayout
                android:id="@+id/ivNextBack"
                android:layout_width="wrap_content"
                android:orientation="horizontal"
                android:layout_height="wrap_content">
                <ImageView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:padding="8dp"
                    android:src="@drawable/rbgame_ic_back_arrow" />
                <TextView
                    android:text="返回游戏"
                    android:textColor="#ff333333"
                    android:gravity="center"
                    android:textSize="13sp"
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"/>
            </LinearLayout>
            <TextView
                android:id="@+id/tvTitle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerInParent="true"
                android:text="支付中心"
                android:textColor="#ff333333"
                android:textSize="13dp"
                android:textStyle="bold"
                tools:ignore="HardcodedText,SpUsage" />
        </RelativeLayout>

        <android.support.v4.widget.NestedScrollView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="1dp">

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

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:background="@drawable/rbgame_pay_data_background"
                    android:orientation="vertical"
                    android:paddingStart="18dp"
                    android:paddingTop="10dp"
                    android:paddingEnd="18dp"
                    android:paddingBottom="10dp">

                    <RelativeLayout
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content">

                        <TextView
                            android:id="@+id/tvOrderInfo"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginEnd="5dp"
                            android:text="订单金额:"
                            android:textColor="#333333"
                            android:textSize="12sp" />

                        <TextView
                            android:id="@+id/tvOrderMoney"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_toEndOf="@+id/tvOrderInfo"
                            android:textColor="#E0173A"
                            android:textSize="12sp"
                            tools:text="#E0173A" />
                        <TextView
                            android:id="@+id/tvGameName"
                            android:layout_alignParentEnd="true"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:textColor="#333333"
                            android:textSize="12sp"
                            tools:text="游戏:幻梦云庭" />
                    </RelativeLayout>

                    <View
                        android:layout_width="match_parent"
                        android:layout_height="0.5dp"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:background="#C8C8C8" />
                    <RelativeLayout
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content">
                        <TextView
                            android:id="@+id/tvGameAccount"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:textColor="#333333"
                            android:textSize="12sp"
                            tools:text="账号:XZ8573639" />
                        <TextView
                            android:id="@+id/tvRoleName"
                            android:layout_alignParentEnd="true"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:textColor="#333333"
                            android:textSize="12sp"
                            tools:text="角色名称:张无忌" />
                    </RelativeLayout>

                </LinearLayout>

                <LinearLayout
                    android:layout_marginTop="8dp"
                    android:layout_marginBottom="8dp"
                    android:orientation="horizontal"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content">
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="选择支付方式:"
                        android:textColor="#ff333333"
                        android:textSize="12sp" />
                    <TextView
                        android:id="@+id/tvPayWordInfo"
                        android:textSize="12sp"
                        android:textColor="#FFe0173a"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"/>
                </LinearLayout>


                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="30dp"
                    android:orientation="horizontal">


                    <LinearLayout
                        android:id="@+id/llPayGame"
                        android:layout_width="0dp"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:background="@drawable/rbgame_shape_pay_select"
                        android:gravity="center">

                        <ImageView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:src="@drawable/rbgame_ic_game_pay" />

<!--                        <TextView-->
<!--                            android:id="@+id/tvGameCoin"-->
<!--                            android:layout_width="wrap_content"-->
<!--                            android:layout_height="wrap_content"-->
<!--                            android:layout_marginStart="7dp"-->
<!--                            android:text="游戏币"-->
<!--                            android:textColor="#333333"-->
<!--                            android:textSize="12sp" />-->

                    </LinearLayout>

                    <LinearLayout
                        android:id="@+id/llPayWechat"
                        android:layout_width="0dp"
                        android:layout_height="match_parent"
                        android:layout_marginStart="8dp"
                        android:layout_marginEnd="8dp"
                        android:layout_weight="1"
                        android:background="@drawable/rbgame_shape_pay_un_select"
                        android:gravity="center">

                        <ImageView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:src="@drawable/rbgame_ic_wechat" />

<!--                        <TextView-->
<!--                            android:layout_width="wrap_content"-->
<!--                            android:layout_height="wrap_content"-->
<!--                            android:layout_marginStart="7dp"-->
<!--                            android:text="微信支付"-->
<!--                            android:textColor="#333333"-->
<!--                            android:textSize="12sp" />-->

                    </LinearLayout>

                    <LinearLayout
                        android:id="@+id/llPayAli"
                        android:layout_width="0dp"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:background="@drawable/rbgame_shape_pay_un_select"
                        android:gravity="center">

                        <ImageView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:src="@drawable/rbgame_ic_ali_pay" />

<!--                        <TextView-->
<!--                            android:layout_width="wrap_content"-->
<!--                            android:layout_height="wrap_content"-->
<!--                            android:layout_marginStart="7dp"-->
<!--                            android:text="支付宝"-->
<!--                            android:textColor="#333333"-->
<!--                            android:textSize="12sp" />-->

                    </LinearLayout>
                    <LinearLayout
                        android:id="@+id/scan_code_alipay"
                        android:layout_width="0dp"
                        android:visibility="gone"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:layout_marginStart="7dp"
                        android:background="@drawable/rbgame_shape_pay_un_select"
                        android:gravity="center">

                        <ImageView
                            android:src="@drawable/rbgame_ic_alipay_qr_pay"
                            android:layout_width="match_parent"
                            android:layout_height="match_parent"/>

                    </LinearLayout>

                    <LinearLayout
                        android:id="@+id/scan_code_wechat_pay"
                        android:layout_width="0dp"
                        android:visibility="gone"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:layout_marginStart="7dp"
                        android:background="@drawable/rbgame_shape_pay_un_select"
                        android:gravity="center">

                        <ImageView
                            android:src="@drawable/rbgame_ic_weichat_qr_pay"
                            android:layout_width="match_parent"
                            android:layout_height="match_parent"/>

                    </LinearLayout>
                </LinearLayout>
                <LinearLayout
                    android:layout_marginTop="8dp"
                    android:layout_marginBottom="8dp"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content">
                    <TextView
                        android:id="@+id/tvBalance"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="游戏币余额:0"
                        android:textColor="#ffe0173a"
                        android:textSize="12sp"
                        tools:ignore="HardcodedText" />
                    <ImageView
                        android:id="@+id/refresh_coin"
                        android:layout_marginStart="20dp"
                        android:src="@drawable/rbgame_bg_update"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"/>
                </LinearLayout>


                <TextView
                    android:id="@+id/btnSubmit"
                    android:layout_width="match_parent"
                    android:layout_height="30dp"
                    android:layout_marginBottom="15dp"
                    android:background="@drawable/rbgame_btn_shape_red"
                    android:gravity="center"
                    android:text="确 认"
                    android:textColor="#ffffffff"
                    android:textSize="12sp"
                    tools:ignore="HardcodedText,SpUsage" />

            </LinearLayout>

        </android.support.v4.widget.NestedScrollView>


    </LinearLayout>

    <include
        layout="@layout/rbgame_dialog_loading"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_gravity="center"
        android:visibility="gone" />

    <LinearLayout
        android:id="@+id/llWebPayAli"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_gravity="center"
        android:layout_marginTop="14dp"
        android:layout_marginBottom="14dp"
        android:background="@drawable/rbgame_bg_shape_fff_7_5dp"
        android:gravity="center_vertical"
        android:orientation="vertical"
        android:visibility="gone">
        <LinearLayout
            android:id="@+id/ivBack"
            android:layout_width="wrap_content"
            android:orientation="horizontal"
            android:layout_height="wrap_content">
            <ImageView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_margin="10dp"
                android:padding="5dp"
                android:src="@drawable/rbgame_ic_back_arrow" />
            <TextView
                android:text="返回游戏"
                android:textColor="#ff333333"
                android:gravity="center"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"/>
        </LinearLayout>


        <WebView
            android:id="@+id/payWebView"
            android:layout_width="match_parent"
            android:layout_height="match_parent" />

    </LinearLayout>

</FrameLayout>