<?xml version="1.0" encoding="utf-8"?>
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
android:orientation="vertical"
|
android:background="@drawable/sdp_dialog_base_bg"
|
android:layout_width="@dimen/sdp_pay_dialog_width"
|
android:layout_height="@dimen/sdp_pay_dialog_height">
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
|
<!-- 标题 -->
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:layout_centerInParent="true"
|
android:text="支付"
|
android:paddingTop="5dp"
|
android:paddingBottom="5dp"
|
android:textSize="@dimen/sdp_dialog_title_text_size"
|
android:textStyle="bold"
|
android:textColor="@color/sdp_normal_text_color"/>
|
|
<ImageButton
|
android:id="@+id/closeButton"
|
android:layout_width="30dp"
|
android:layout_height="30dp"
|
android:layout_centerVertical="true"
|
android:layout_alignParentRight="true"
|
android:background="@android:color/transparent"
|
android:scaleType="center"
|
android:scaleX="1.5"
|
android:scaleY="1.5"
|
android:src="@drawable/close_hover" />
|
</RelativeLayout>
|
|
<ImageView
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:layout_marginLeft="10dp"
|
android:layout_marginRight="10dp"
|
android:background="@color/sdp_dialog_seperator_line_color"/>
|
|
<!-- 产品名称 -->
|
<TextView
|
android:id="@+id/prodNameTextView"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:paddingTop="10dp"
|
android:textSize="@dimen/sdp_normal_text_size"
|
android:textColor="@color/sdp_normal_text_color"
|
android:gravity="center_vertical|center_horizontal" />
|
|
<!-- 产品金额 -->
|
<TextView
|
android:id="@+id/prodAmountTextView"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center_vertical|center_horizontal"
|
android:paddingTop="10dp"
|
android:textSize="@dimen/sdp_product_amount_text_size"
|
android:textColor="@color/sdp_normal_text_color"
|
android:textStyle="bold" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center_horizontal|center_vertical"
|
android:orientation="horizontal"
|
android:paddingLeft="10dp">
|
|
<ImageView
|
android:id="@+id/bankIconImageView"
|
android:layout_width="@dimen/sdp_bank_icon_width"
|
android:layout_height="@dimen/sdp_bank_icon_height"
|
android:src="@drawable/bank_boc" />
|
|
<TextView
|
android:id="@+id/bankNameTextView"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@color/sdp_normal_text_color"
|
android:textSize="@dimen/sdp_normal_text_size"
|
android:text="中国银行借记卡(**7677)" />
|
|
<Button
|
android:id="@+id/changeCardButton"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@android:color/transparent"
|
android:text="更换"
|
android:textSize="@dimen/sdp_normal_text_size"
|
android:textColor="@color/sdp_button_change_bank_text_color" />
|
</LinearLayout>
|
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:paddingTop="5dp"
|
>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:visibility="visible"
|
android:id="@+id/contentLayout">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:gravity="center_horizontal|center_vertical"
|
android:paddingRight="20dp"
|
android:paddingLeft="20dp">
|
<EditText
|
android:id="@+id/validCodeEditText"
|
android:layout_width="0dp"
|
android:layout_height="40dp"
|
android:layout_weight="4"
|
android:inputType="number"
|
android:maxLines="1"
|
android:maxLength="6"
|
android:textColorHint="@color/sdp_text_gray_color"
|
android:textColor="@color/sdp_normal_text_color"
|
android:background="@drawable/sdp_edittext_bg"/>
|
<com.shengpay.sdpmerchantpaysdk.widget.MmsVerifyButton
|
android:id="@+id/sendValidCodeButton"
|
android:layout_width="0dp"
|
android:layout_weight="3"
|
android:layout_height="40dp"
|
android:elevation="15dp"
|
android:textColor="#FFFFFF"
|
android:paddingLeft="10dp"
|
android:paddingRight="10dp"
|
android:text="发送验证码"
|
android:textSize="@dimen/sdp_normal_text_size"
|
android:background="@drawable/sdp_button_sel" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:paddingLeft="20dp"
|
android:orientation="horizontal"
|
android:visibility="gone">
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="同意"
|
android:textColor="#b6b6b6"/>
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="盛付通快捷支付协议"
|
android:textColor="@color/sdp_button_normal_background_color"/>
|
</LinearLayout>
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:id="@+id/tipLayout"
|
android:gravity="center"
|
android:orientation="horizontal"
|
android:visibility="invisible">
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="当前无可用银行卡"
|
android:textSize="16sp"
|
android:textColor="#000000"/>
|
</LinearLayout>
|
</RelativeLayout>
|
</LinearLayout>
|