|
|
@@ -1,11 +1,9 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
- xmlns:tools="http://schemas.android.com/tools"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
android:background="#2A3342"
|
|
|
- android:fitsSystemWindows="true"
|
|
|
- tools:context="com.sheep.gamegroup.view.activity.ActPay">
|
|
|
+ android:fitsSystemWindows="true">
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/title_img_back"
|
|
|
@@ -44,8 +42,6 @@
|
|
|
android:layout_below="@+id/title_name_tv"
|
|
|
android:background="#212936" />
|
|
|
|
|
|
-
|
|
|
- <!--支付页面-->
|
|
|
<TextView
|
|
|
android:id="@+id/pay_msg_tv"
|
|
|
android:layout_width="match_parent"
|
|
|
@@ -66,16 +62,120 @@
|
|
|
android:layout_marginTop="40dp"
|
|
|
android:background="#212936" />
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/pay_amount"
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/pay_amount_layout"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:layout_above="@+id/bottom_btn_layout"
|
|
|
+ android:layout_marginBottom="6dp"
|
|
|
+ android:layout_marginRight="12dp"
|
|
|
+ android:layout_marginLeft="12dp"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_below="@+id/pay_line"
|
|
|
- android:layout_marginTop="40dp"
|
|
|
- android:gravity="center"
|
|
|
- android:text="@string/x_yuan"
|
|
|
- android:textColor="#ffffe63c"
|
|
|
- android:textSize="18sp" />
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ <LinearLayout
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:gravity="center"
|
|
|
+ android:layout_marginBottom="8dp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/sheep_coin_amount"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="拥有绵羊币: 0"
|
|
|
+ android:textColor="@android:color/white"
|
|
|
+ android:textSize="15sp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/game_golden_amount"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="拥有金丹: 0"
|
|
|
+ android:textColor="@android:color/white"
|
|
|
+ android:textSize="15sp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
+ </LinearLayout>
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:background="#212936" />
|
|
|
+ <LinearLayout
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:gravity="center"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:layout_marginBottom="8dp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ <TextView
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="订单金额"
|
|
|
+ android:textColor="@android:color/white"
|
|
|
+ android:textSize="15sp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/order_amount"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center_vertical|right"
|
|
|
+ android:text="0"
|
|
|
+ android:textColor="@android:color/white"
|
|
|
+ android:textSize="18sp" />
|
|
|
+ </LinearLayout>
|
|
|
+ <LinearLayout
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:gravity="center"
|
|
|
+ android:layout_marginBottom="8dp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ <TextView
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="金丹减免"
|
|
|
+ android:textColor="@android:color/white"
|
|
|
+ android:textSize="15sp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/golden_sub_amount"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center_vertical|right"
|
|
|
+ android:text="0"
|
|
|
+ android:textColor="@android:color/white"
|
|
|
+ android:textSize="18sp" />
|
|
|
+ </LinearLayout>
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:background="#212936" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:gravity="center"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/yiyouhui_amount"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="已优惠: 0元"
|
|
|
+ android:textColor="@android:color/white"
|
|
|
+ android:textSize="15sp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/pay_amount"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center_vertical|right"
|
|
|
+ android:text="应付金额: 0元"
|
|
|
+ android:textColor="#ffffe63c"
|
|
|
+ android:textSize="18sp" />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
<!--支付页面-->
|
|
|
|
|
|
|
|
|
@@ -148,38 +248,79 @@
|
|
|
android:textColor="#ffffffff"
|
|
|
android:textSize="12sp" />
|
|
|
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/pay_commit"
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/bottom_btn_layout"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
+ android:padding="6dp"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="36dp"
|
|
|
- android:layout_above="@+id/directional_pay_btn"
|
|
|
- android:layout_margin="12dp"
|
|
|
- android:background="@drawable/shape_blue_solid_rectangle_18"
|
|
|
- android:gravity="center"
|
|
|
- android:text="立即支付"
|
|
|
- android:onClick="onClickBottomBtn"
|
|
|
- android:textColor="#ffffffff"
|
|
|
- android:textSize="18sp" />
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/pay_commit"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="36dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@drawable/shape_blue_solid_rectangle_18"
|
|
|
+ android:layout_marginRight="3dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="立即支付"
|
|
|
+ android:onClick="onClickBottomBtn"
|
|
|
+ android:textColor="#ffffffff"
|
|
|
+ android:textSize="16sp" />
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/directional_pay_btn"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="36dp"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
- android:layout_margin="12dp"
|
|
|
- android:background="@drawable/shape_blue_solid_rectangle_18"
|
|
|
- android:gravity="center"
|
|
|
- android:text="定向优惠"
|
|
|
- android:onClick="onDirectionalPayClicked"
|
|
|
- android:textColor="#ffffffff"
|
|
|
- android:textSize="18sp" />
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/directional_pay_btn"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="36dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_marginLeft="3dp"
|
|
|
+ android:background="@drawable/shape_red_solid_rectangle_18"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="定向优惠"
|
|
|
+ android:onClick="onDirectionalPayClicked"
|
|
|
+ android:textColor="#ffffffff"
|
|
|
+ android:textSize="16sp" />
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
<View
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="1dp"
|
|
|
- android:layout_above="@+id/pay_commit"
|
|
|
+ android:layout_above="@+id/bottom_btn_layout"
|
|
|
android:layout_marginTop="40dp"
|
|
|
android:background="#212936" />
|
|
|
- <!--<include layout=""-->
|
|
|
+
|
|
|
+ <!--dialog-->
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/recharge_layout"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:background="@drawable/shape_white_solid_rectangle_5"
|
|
|
+ android:gravity="center"
|
|
|
+ android:padding="16dp"
|
|
|
+ android:visibility="gone"
|
|
|
+ android:layout_centerInParent="true"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ <TextView
|
|
|
+ android:text="绵羊币不足"
|
|
|
+ android:textSize="14sp"
|
|
|
+ android:textColor="@android:color/darker_gray"
|
|
|
+ android:layout_marginRight="8dp"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/recharge_btn"
|
|
|
+ android:onClick="onRechargeBtnClick"
|
|
|
+ android:text="立即充值"
|
|
|
+ android:textSize="13sp"
|
|
|
+ android:paddingTop="4dp"
|
|
|
+ android:paddingBottom="4dp"
|
|
|
+ android:paddingLeft="12sp"
|
|
|
+ android:paddingRight="12sp"
|
|
|
+ android:textColor="@android:color/white"
|
|
|
+ android:background="@drawable/shape_red_solid_rectangle"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
</RelativeLayout>
|