|
@@ -0,0 +1,243 @@
|
|
|
+<LinearLayout 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:orientation="vertical"
|
|
|
+ tools:context="com.vtpayment.plugin.MainActivity" >
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="60dp"
|
|
|
+ android:background="#DDA755" >
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="AllPay演示Demo"
|
|
|
+ android:layout_centerInParent="true"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:textColor="#ffffff"
|
|
|
+ />
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="30dp"
|
|
|
+ >
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/text_merid"
|
|
|
+ android:layout_width="80dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="30dp"
|
|
|
+ android:text="商户号:"
|
|
|
+ android:textSize="15sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:textColor="#000000"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ />
|
|
|
+
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/edit_merid"
|
|
|
+ android:layout_width="180dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ android:layout_marginLeft="20dp"
|
|
|
+ android:layout_toRightOf="@id/text_merid"
|
|
|
+ android:textSize="15sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:textColor="#888888"
|
|
|
+ android:inputType="numberDecimal"
|
|
|
+ android:enabled="false"
|
|
|
+ android:focusable="false"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ />
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ >
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/text_ordernum"
|
|
|
+ android:layout_width="80dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="30dp"
|
|
|
+ android:text="订单号:"
|
|
|
+ android:textSize="15sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:textColor="#000000"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ />
|
|
|
+
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/edit_ordernum"
|
|
|
+ android:layout_width="180dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ android:layout_marginLeft="20dp"
|
|
|
+ android:layout_toRightOf="@id/text_ordernum"
|
|
|
+ android:textSize="15sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:textColor="#888888"
|
|
|
+ android:inputType="numberDecimal"
|
|
|
+ android:enabled="false"
|
|
|
+ android:focusable="false"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ />
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ >
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/text_amount"
|
|
|
+ android:layout_width="80dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="30dp"
|
|
|
+ android:text="订单金额:"
|
|
|
+ android:textSize="15sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:textColor="#000000"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ />
|
|
|
+
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/edit_amount"
|
|
|
+ android:layout_width="180dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ android:layout_marginLeft="20dp"
|
|
|
+ android:layout_toRightOf="@id/text_amount"
|
|
|
+ android:textSize="15sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:textColor="#000000"
|
|
|
+ android:inputType="numberDecimal"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ />
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ >
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/text_currency"
|
|
|
+ android:layout_width="80dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="30dp"
|
|
|
+ android:text="币种:"
|
|
|
+ android:textSize="15sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:textColor="#000000"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ />
|
|
|
+
|
|
|
+
|
|
|
+ <Spinner android:id="@+id/spinner_currency"
|
|
|
+ android:layout_width="180dp"
|
|
|
+ android:layout_height="35dp"
|
|
|
+ android:layout_toRightOf="@id/text_currency"
|
|
|
+ android:layout_marginLeft="20dp"
|
|
|
+ android:paddingLeft="5dp"
|
|
|
+ android:background="#ffffff"
|
|
|
+ >
|
|
|
+
|
|
|
+ </Spinner>
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ >
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/text_paymentschema"
|
|
|
+ android:layout_width="80dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="30dp"
|
|
|
+ android:text="支付渠道:"
|
|
|
+ android:textSize="15sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:textColor="#000000"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ />
|
|
|
+
|
|
|
+
|
|
|
+ <Spinner android:id="@+id/spinner_paymentschema"
|
|
|
+ android:layout_width="180dp"
|
|
|
+ android:layout_height="35dp"
|
|
|
+ android:layout_toRightOf="@id/text_paymentschema"
|
|
|
+ android:layout_marginLeft="20dp"
|
|
|
+ android:paddingLeft="5dp"
|
|
|
+ android:background="#ffffff"
|
|
|
+ >
|
|
|
+
|
|
|
+ </Spinner>
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginTop="100dp"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="center_horizontal"
|
|
|
+ >
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/submit"
|
|
|
+ android:layout_width="200dp"
|
|
|
+ android:layout_height="50dp"
|
|
|
+ android:layout_margin="10dp"
|
|
|
+ android:text="提交订单"
|
|
|
+ android:background="@drawable/buy_button_bg"
|
|
|
+
|
|
|
+ />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/union_pay"
|
|
|
+ android:layout_width="100dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_margin="10dp"
|
|
|
+ android:text="UnionPay"
|
|
|
+ android:visibility="gone"
|
|
|
+ />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/ali_pay"
|
|
|
+ android:layout_width="100dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_margin="10dp"
|
|
|
+ android:text="AliPay"
|
|
|
+ android:visibility="gone"
|
|
|
+ />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/wx_pay"
|
|
|
+ android:layout_width="100dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_margin="10dp"
|
|
|
+ android:text="WeChat Pay"
|
|
|
+ android:visibility="gone"
|
|
|
+ />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+</LinearLayout>
|