xunqu_activity_pay.xml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="310dp"
  4. android:layout_height="wrap_content"
  5. android:background="@drawable/xunqu_activity_pay"
  6. android:orientation="horizontal" >
  7. <RelativeLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="260dp"
  10. android:layout_alignParentLeft="true"
  11. android:layout_alignParentTop="true"
  12. android:background="#AAF3F3F3" >
  13. <Button
  14. android:id="@+id/xunqu_btn_ok"
  15. android:layout_width="match_parent"
  16. android:layout_height="40dp"
  17. android:layout_alignParentBottom="true"
  18. android:layout_centerHorizontal="true"
  19. android:layout_marginBottom="10dp"
  20. android:layout_marginLeft="20dp"
  21. android:background="@drawable/ixunqu_button_blue"
  22. android:text="确定充值"
  23. android:textSize="16dp"
  24. android:textColor="#FFFFFF" />
  25. <RelativeLayout
  26. android:id="@+id/xunqu_pay_head_view"
  27. android:layout_width="match_parent"
  28. android:layout_height="50dp"
  29. android:layout_alignParentTop="true"
  30. android:layout_centerHorizontal="true" >
  31. <TextView
  32. android:id="@+id/xunqu_tv_pay_head_title"
  33. android:layout_width="wrap_content"
  34. android:layout_height="wrap_content"
  35. android:layout_centerHorizontal="true"
  36. android:layout_centerVertical="true"
  37. android:text="充值中心"
  38. android:textColor="#000000"
  39. android:textSize="18dp" />
  40. <View
  41. android:id="@+id/xunqu_view_01"
  42. android:layout_width="match_parent"
  43. android:layout_height="0.5dp"
  44. android:layout_alignParentBottom="true"
  45. android:layout_centerHorizontal="true"
  46. android:background="#BFBFBF" />
  47. <Button
  48. android:id="@+id/xunqu_btn_pay_close"
  49. android:layout_width="25dp"
  50. android:layout_height="25dp"
  51. android:layout_alignParentRight="true"
  52. android:layout_centerVertical="true"
  53. android:layout_marginRight="10dp"
  54. android:background="@drawable/xunqu_btn_close" />
  55. </RelativeLayout>
  56. <RelativeLayout
  57. android:id="@+id/xunqu_pay_info_view"
  58. android:layout_width="match_parent"
  59. android:layout_height="50dp"
  60. android:layout_below="@+id/xunqu_pay_head_view"
  61. android:layout_centerHorizontal="true" >
  62. <TextView
  63. android:id="@+id/xunqu_tv_product_name"
  64. android:layout_width="200dp"
  65. android:layout_height="wrap_content"
  66. android:layout_alignParentLeft="true"
  67. android:layout_centerVertical="true"
  68. android:layout_marginLeft="10dp"
  69. android:text="test_商品"
  70. android:textColor="#5D5D5D"
  71. android:ellipsize="end"
  72. android:singleLine="true"
  73. android:textSize="15dp" />
  74. <TextView
  75. android:id="@+id/xunqu_tv_amount_unit"
  76. android:layout_width="wrap_content"
  77. android:layout_height="wrap_content"
  78. android:layout_alignBottom="@+id/xunqu_tv_product_name"
  79. android:layout_alignParentRight="true"
  80. android:layout_marginRight="10dp"
  81. android:text=" 元"
  82. android:textColor="#5D5D5D"
  83. android:textSize="15dp" />
  84. <TextView
  85. android:id="@+id/xunqu_tv_product_amount"
  86. android:layout_width="wrap_content"
  87. android:layout_height="wrap_content"
  88. android:layout_alignBaseline="@+id/xunqu_tv_amount_unit"
  89. android:layout_alignBottom="@+id/xunqu_tv_amount_unit"
  90. android:layout_toLeftOf="@+id/xunqu_tv_amount_unit"
  91. android:text="0"
  92. android:textColor="#FF0000"
  93. android:textSize="15dp" />
  94. </RelativeLayout>
  95. <RelativeLayout
  96. android:layout_width="match_parent"
  97. android:layout_height="wrap_content"
  98. android:layout_below="@+id/xunqu_pay_info_view"
  99. android:layout_marginLeft="20dp"
  100. android:layout_centerHorizontal="true"
  101. android:background="@drawable/xunqu_pay_layout" >
  102. <RelativeLayout
  103. android:id="@+id/xunqu_alipay_view"
  104. android:layout_width="match_parent"
  105. android:layout_height="50dp"
  106. android:visibility="gone"
  107. android:layout_alignParentTop="true"
  108. android:layout_centerHorizontal="true" >
  109. <ImageView
  110. android:id="@+id/xunqu_iv_alipay_icon"
  111. android:layout_width="37dp"
  112. android:layout_height="37dp"
  113. android:layout_alignParentLeft="true"
  114. android:layout_centerVertical="true"
  115. android:layout_marginLeft="5dp"
  116. android:src="@drawable/xunqu_pay_type_alipay_icon" />
  117. <TextView
  118. android:id="@+id/xunqu_tv_alipay_text"
  119. android:layout_width="wrap_content"
  120. android:layout_height="wrap_content"
  121. android:layout_centerVertical="true"
  122. android:layout_marginLeft="10dp"
  123. android:layout_toRightOf="@+id/xunqu_iv_alipay_icon"
  124. android:textColor="#5D5D5D"
  125. android:textSize="16dp"
  126. android:text="支付宝" />
  127. <View
  128. android:id="@+id/xunqu_view_02"
  129. android:layout_width="match_parent"
  130. android:layout_height="0.5dp"
  131. android:layout_alignParentBottom="true"
  132. android:layout_centerHorizontal="true"
  133. android:background="#EEEEEE"/>
  134. <ImageView
  135. android:id="@+id/xunqu_iv_alipay_payment_select"
  136. android:layout_width="17dp"
  137. android:layout_height="17dp"
  138. android:layout_alignParentRight="true"
  139. android:layout_centerVertical="true"
  140. android:layout_marginRight="10dp"
  141. android:background="@drawable/xunqu_payment_select" />
  142. </RelativeLayout>
  143. <RelativeLayout
  144. android:id="@+id/xunqu_wxpay_view"
  145. android:layout_width="match_parent"
  146. android:layout_height="50dp"
  147. android:visibility="gone"
  148. android:layout_below="@id/xunqu_alipay_view"
  149. android:layout_centerHorizontal="true" >
  150. <ImageView
  151. android:id="@+id/xunqu_iv_wx_icon"
  152. android:layout_width="37dp"
  153. android:layout_height="37dp"
  154. android:layout_alignParentLeft="true"
  155. android:layout_centerVertical="true"
  156. android:layout_marginLeft="5dp"
  157. android:src="@drawable/xunqu_pay_type_weixin_icon" />
  158. <TextView
  159. android:id="@+id/xunqu_tv_wx_text"
  160. android:layout_width="wrap_content"
  161. android:layout_height="wrap_content"
  162. android:layout_centerVertical="true"
  163. android:layout_marginLeft="10dp"
  164. android:layout_toRightOf="@+id/xunqu_iv_wx_icon"
  165. android:text="微信支付"
  166. android:textColor="#5D5D5D"
  167. android:textSize="16dp" />
  168. <ImageView
  169. android:id="@+id/xunqu_iv_wx_payment_select"
  170. android:layout_width="17dp"
  171. android:layout_height="17dp"
  172. android:layout_alignParentRight="true"
  173. android:layout_centerVertical="true"
  174. android:layout_marginRight="10dp"
  175. android:background="@drawable/xunqu_payment_unselect" />
  176. </RelativeLayout>
  177. </RelativeLayout>
  178. </RelativeLayout>
  179. </RelativeLayout>