bssdk_fragment_pay_center.xml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:background="@color/main_color"
  7. android:orientation="vertical">
  8. <!--app:divider="@drawable/bssdk_slidingview_line"-->
  9. <!--app:showDividers="middle"-->
  10. <LinearLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="@dimen/DIMEN_45DP"
  13. android:gravity="center_vertical"
  14. android:orientation="horizontal"
  15. android:paddingStart="@dimen/DIMEN_19DP"
  16. android:paddingLeft="@dimen/DIMEN_19DP"
  17. android:paddingEnd="@dimen/DIMEN_15DP"
  18. android:paddingRight="@dimen/DIMEN_15DP">
  19. <TextView
  20. android:id="@+id/tv_pay_center_back"
  21. android:layout_width="wrap_content"
  22. android:layout_height="match_parent"
  23. android:drawableStart="@drawable/bssdk_left_arrow"
  24. android:drawableLeft="@drawable/bssdk_left_arrow"
  25. android:drawablePadding="@dimen/DIMEN_5DP"
  26. android:gravity="center"
  27. android:text="返回"
  28. android:textColor="@color/indicator_color" />
  29. <TextView
  30. android:layout_width="0dp"
  31. android:layout_height="wrap_content"
  32. android:layout_weight="1"
  33. android:gravity="center"
  34. android:text="蓝叠币充值中心"
  35. android:textColor="@color/white"
  36. android:textSize="@dimen/TEXT_SIZE_15SP" />
  37. <TextView
  38. android:id="@+id/tv_pay_record"
  39. android:layout_width="wrap_content"
  40. android:layout_height="wrap_content"
  41. android:gravity="center"
  42. android:text="充值记录"
  43. android:textColor="@color/indicator_color" />
  44. </LinearLayout>
  45. <View
  46. android:layout_width="match_parent"
  47. android:layout_height="2px"
  48. android:background="@drawable/bssdk_slidingview_line" />
  49. <android.support.v4.widget.NestedScrollView
  50. android:layout_width="match_parent"
  51. android:layout_height="match_parent"
  52. android:scrollbarStyle="outsideOverlay"
  53. android:scrollbars="vertical">
  54. <LinearLayout
  55. android:layout_width="match_parent"
  56. android:layout_height="match_parent"
  57. android:orientation="vertical">
  58. <!--app:divider="@drawable/bssdk_slidingview_line"-->
  59. <!--app:showDividers="middle"-->
  60. <LinearLayout
  61. android:id="@+id/ll_pay_center_userid"
  62. android:layout_width="match_parent"
  63. android:layout_height="@dimen/DIMEN_32DP"
  64. android:gravity="center_vertical"
  65. android:orientation="horizontal"
  66. android:paddingStart="@dimen/DIMEN_19DP"
  67. android:paddingLeft="@dimen/DIMEN_19DP"
  68. android:paddingEnd="@dimen/DIMEN_10DP"
  69. android:paddingRight="@dimen/DIMEN_10DP">
  70. <TextView
  71. android:layout_width="wrap_content"
  72. android:layout_height="wrap_content"
  73. android:layout_marginEnd="@dimen/DIMEN_10DP"
  74. android:layout_marginRight="@dimen/DIMEN_10DP"
  75. android:text="用户ID"
  76. android:textColor="@color/white"
  77. android:textSize="@dimen/TEXT_SIZE_12SP" />
  78. <com.bluestacks.sdk.widget.customview.BSMarqueeText
  79. android:id="@+id/tv_pay_center_userid"
  80. android:layout_width="0dp"
  81. android:layout_height="wrap_content"
  82. android:layout_weight="1"
  83. android:ellipsize="marquee"
  84. android:gravity="end|center_vertical"
  85. android:marqueeRepeatLimit="marquee_forever"
  86. android:singleLine="true"
  87. android:text=""
  88. android:textColor="@color/alpha_50_white"
  89. android:textSize="@dimen/TEXT_SIZE_12SP" />
  90. <ImageView
  91. android:layout_width="wrap_content"
  92. android:layout_height="wrap_content"
  93. android:src="@drawable/bssdk_right_arrow"
  94. android:visibility="invisible" />
  95. </LinearLayout>
  96. <View
  97. android:layout_width="match_parent"
  98. android:layout_height="1px"
  99. android:background="@drawable/bssdk_slidingview_line" />
  100. <LinearLayout
  101. android:id="@+id/ll_pay_center_money"
  102. android:layout_width="match_parent"
  103. android:layout_height="@dimen/DIMEN_32DP"
  104. android:gravity="center_vertical"
  105. android:orientation="horizontal"
  106. android:paddingStart="@dimen/DIMEN_19DP"
  107. android:paddingLeft="@dimen/DIMEN_19DP"
  108. android:paddingEnd="@dimen/DIMEN_10DP"
  109. android:paddingRight="@dimen/DIMEN_10DP">
  110. <TextView
  111. android:layout_width="wrap_content"
  112. android:layout_height="wrap_content"
  113. android:layout_marginEnd="@dimen/DIMEN_10DP"
  114. android:layout_marginRight="@dimen/DIMEN_10DP"
  115. android:text="蓝叠币"
  116. android:textColor="@color/white"
  117. android:textSize="@dimen/TEXT_SIZE_12SP" />
  118. <TextView
  119. android:id="@+id/tv_pay_center_money"
  120. android:layout_width="0dp"
  121. android:layout_height="wrap_content"
  122. android:layout_marginEnd="@dimen/DIMEN_10DP"
  123. android:layout_marginRight="@dimen/DIMEN_10DP"
  124. android:layout_weight="1"
  125. android:gravity="end|center_vertical"
  126. android:text="@string/bssdk_center_pay_text"
  127. android:textColor="@color/alpha_50_white"
  128. android:textSize="@dimen/TEXT_SIZE_12SP" />
  129. <ImageView
  130. android:layout_width="wrap_content"
  131. android:layout_height="wrap_content"
  132. android:src="@drawable/bssdk_right_arrow"
  133. android:visibility="invisible" />
  134. </LinearLayout>
  135. <View
  136. android:layout_width="match_parent"
  137. android:layout_height="1px"
  138. android:background="@drawable/bssdk_slidingview_line" />
  139. <LinearLayout
  140. android:layout_width="match_parent"
  141. android:layout_height="wrap_content"
  142. android:layout_marginTop="@dimen/DIMEN_10DP"
  143. android:orientation="vertical"
  144. android:paddingStart="@dimen/DIMEN_19DP"
  145. android:paddingLeft="@dimen/DIMEN_19DP"
  146. android:paddingEnd="@dimen/DIMEN_10DP"
  147. android:paddingRight="@dimen/DIMEN_10DP">
  148. <TextView
  149. android:layout_width="wrap_content"
  150. android:layout_height="wrap_content"
  151. android:layout_marginEnd="@dimen/DIMEN_10DP"
  152. android:layout_marginRight="@dimen/DIMEN_10DP"
  153. android:text="支付方式"
  154. android:textColor="@color/white"
  155. android:textSize="@dimen/TEXT_SIZE_12SP" />
  156. <LinearLayout
  157. android:layout_width="wrap_content"
  158. android:layout_height="wrap_content"
  159. android:layout_gravity="center_horizontal"
  160. android:layout_marginTop="@dimen/DIMEN_5DP"
  161. android:gravity="center"
  162. android:orientation="horizontal"
  163. android:paddingBottom="@dimen/DIMEN_10DP">
  164. <RelativeLayout
  165. android:layout_width="match_parent"
  166. android:layout_height="wrap_content">
  167. <ProgressBar
  168. android:id="@+id/pb_pay_center_type_loading"
  169. style="?android:attr/progressBarStyle"
  170. android:layout_width="wrap_content"
  171. android:layout_height="wrap_content"
  172. android:layout_centerInParent="true"
  173. android:indeterminateDrawable="@drawable/bssdk_dialog_loading_bg"
  174. android:visibility="visible"
  175. tools:visibility="gone" />
  176. <com.bluestacks.sdk.widget.customview.GiridViewForScrollView
  177. android:id="@+id/gv_pay_center_type"
  178. android:layout_width="match_parent"
  179. android:layout_height="wrap_content"
  180. android:layout_marginTop="@dimen/DIMEN_10DP"
  181. android:layout_marginEnd="@dimen/DIMEN_9DP"
  182. android:layout_marginRight="@dimen/DIMEN_9DP"
  183. android:fadeScrollbars="false"
  184. android:listSelector="@color/transparent"
  185. android:numColumns="3"
  186. android:scrollbars="none"
  187. android:stretchMode="columnWidth"
  188. android:verticalSpacing="@dimen/DIMEN_10DP"
  189. android:visibility="gone"
  190. tools:listitem="@layout/bssdk_item_pay_center_body"
  191. tools:visibility="visible" />
  192. </RelativeLayout>
  193. <!--<RelativeLayout-->
  194. <!--android:layout_width="wrap_content"-->
  195. <!--android:layout_height="wrap_content"-->
  196. <!--android:layout_marginLeft="@dimen/DIMEN_30DP">-->
  197. <!--<TextView-->
  198. <!--android:id="@+id/tv_pay_center_wechat"-->
  199. <!--android:layout_width="wrap_content"-->
  200. <!--android:layout_height="wrap_content"-->
  201. <!--android:layout_marginTop="@dimen/DIMEN_4DP"-->
  202. <!--android:drawablePadding="@dimen/DIMEN_2DP"-->
  203. <!--android:drawableTop="@drawable/bssdk_wechat_logo"-->
  204. <!--android:paddingLeft="@dimen/DIMEN_7DP"-->
  205. <!--android:paddingRight="@dimen/DIMEN_7DP"-->
  206. <!--android:text="微信支付"-->
  207. <!--android:textColor="@color/alpha_50_white"-->
  208. <!--android:textSize="@dimen/TEXT_SIZE_12SP"-->
  209. <!--android:visibility="visible"/>-->
  210. <!--<TextView-->
  211. <!--android:layout_width="wrap_content"-->
  212. <!--android:layout_height="wrap_content"-->
  213. <!--android:background="@drawable/bssdk_price_discount"-->
  214. <!--android:paddingBottom="@dimen/DIMEN_2DP"-->
  215. <!--android:paddingLeft="@dimen/DIMEN_5DP"-->
  216. <!--android:paddingRight="@dimen/DIMEN_5DP"-->
  217. <!--android:paddingTop="@dimen/DIMEN_2DP"-->
  218. <!--android:text="1.1折"-->
  219. <!--android:textColor="@color/text_color_fd412f"-->
  220. <!--android:textSize="@dimen/TEXT_SIZE_8SP"-->
  221. <!--android:visibility="gone"-->
  222. <!--tools:visibility="visible"/>-->
  223. <!--</RelativeLayout>-->
  224. </LinearLayout>
  225. </LinearLayout>
  226. <View
  227. android:layout_width="match_parent"
  228. android:layout_height="1px"
  229. android:background="@drawable/bssdk_slidingview_line" />
  230. <LinearLayout
  231. android:layout_width="match_parent"
  232. android:layout_height="wrap_content"
  233. android:orientation="vertical"
  234. android:paddingStart="@dimen/DIMEN_19DP"
  235. android:paddingLeft="@dimen/DIMEN_19DP"
  236. android:paddingEnd="@dimen/DIMEN_10DP"
  237. android:paddingRight="@dimen/DIMEN_10DP"
  238. android:paddingBottom="@dimen/DIMEN_10DP">
  239. <TextView
  240. android:layout_width="wrap_content"
  241. android:layout_height="wrap_content"
  242. android:layout_marginEnd="@dimen/DIMEN_10DP"
  243. android:layout_marginRight="@dimen/DIMEN_10DP"
  244. android:text="充值蓝叠币数量"
  245. android:textColor="@color/white"
  246. android:textSize="@dimen/TEXT_SIZE_12SP" />
  247. <RelativeLayout
  248. android:layout_width="match_parent"
  249. android:layout_height="wrap_content">
  250. <ProgressBar
  251. android:id="@+id/pb_pay_center_loading"
  252. style="?android:attr/progressBarStyle"
  253. android:layout_width="wrap_content"
  254. android:layout_height="wrap_content"
  255. android:layout_centerInParent="true"
  256. android:indeterminateDrawable="@drawable/bssdk_dialog_loading_bg"
  257. android:visibility="visible"
  258. tools:visibility="gone" />
  259. <com.bluestacks.sdk.widget.customview.GiridViewForScrollView
  260. android:id="@+id/gv_pay_center"
  261. android:layout_width="match_parent"
  262. android:layout_height="wrap_content"
  263. android:layout_marginTop="@dimen/DIMEN_10DP"
  264. android:layout_marginEnd="@dimen/DIMEN_9DP"
  265. android:layout_marginRight="@dimen/DIMEN_9DP"
  266. android:fadeScrollbars="false"
  267. android:focusable="true"
  268. android:listSelector="@drawable/bssdk_item_bg_selector"
  269. android:numColumns="3"
  270. android:scrollbars="none"
  271. android:stretchMode="columnWidth"
  272. android:verticalSpacing="@dimen/DIMEN_10DP"
  273. android:visibility="gone"
  274. tools:listitem="@layout/bssdk_item_pay_center_body"
  275. tools:visibility="visible" />
  276. </RelativeLayout>
  277. </LinearLayout>
  278. <View
  279. android:layout_width="match_parent"
  280. android:layout_height="1px"
  281. android:background="@drawable/bssdk_slidingview_line" />
  282. <LinearLayout
  283. android:layout_width="match_parent"
  284. android:layout_height="@dimen/DIMEN_32DP"
  285. android:gravity="center_vertical"
  286. android:orientation="horizontal"
  287. android:paddingStart="@dimen/DIMEN_19DP"
  288. android:paddingLeft="@dimen/DIMEN_19DP"
  289. android:paddingEnd="@dimen/DIMEN_10DP"
  290. android:paddingRight="@dimen/DIMEN_10DP">
  291. <TextView
  292. android:layout_width="wrap_content"
  293. android:layout_height="match_parent"
  294. android:layout_marginEnd="@dimen/DIMEN_10DP"
  295. android:layout_marginRight="@dimen/DIMEN_10DP"
  296. android:gravity="center_vertical"
  297. android:text="充值数量"
  298. android:textColor="@color/white"
  299. android:textSize="@dimen/TEXT_SIZE_12SP" />
  300. <EditText
  301. android:id="@+id/et_pay_center_price"
  302. android:layout_width="0dp"
  303. android:layout_height="match_parent"
  304. android:layout_marginEnd="@dimen/DIMEN_10DP"
  305. android:layout_marginRight="@dimen/DIMEN_10DP"
  306. android:layout_weight="1"
  307. android:background="@null"
  308. android:focusable="true"
  309. android:gravity="center_vertical"
  310. android:imeOptions="actionDone"
  311. android:hint="请输入正确的充值数量"
  312. android:inputType="number"
  313. android:maxLength="8"
  314. android:textColor="@color/white"
  315. android:textColorHint="@color/alpha_50_white"
  316. android:textCursorDrawable="@drawable/bssdk_text_cursor_drawable"
  317. android:textSize="@dimen/TEXT_SIZE_12SP" />
  318. <TextView
  319. android:layout_width="wrap_content"
  320. android:layout_height="match_parent"
  321. android:layout_marginEnd="@dimen/DIMEN_10DP"
  322. android:layout_marginRight="@dimen/DIMEN_10DP"
  323. android:gravity="center_vertical"
  324. android:text="蓝叠币"
  325. android:textColor="@color/alpha_50_white"
  326. android:textSize="@dimen/TEXT_SIZE_12SP" />
  327. </LinearLayout>
  328. <View
  329. android:layout_width="match_parent"
  330. android:layout_height="1px"
  331. android:background="@drawable/bssdk_slidingview_line" />
  332. <Button
  333. android:id="@+id/btn_pay_center_confirm"
  334. android:layout_width="match_parent"
  335. android:layout_height="@dimen/DIMEN_40DP"
  336. android:layout_marginLeft="@dimen/DIMEN_20DP"
  337. android:layout_marginTop="@dimen/DIMEN_35DP"
  338. android:layout_marginRight="@dimen/DIMEN_20DP"
  339. android:layout_marginBottom="@dimen/DIMEN_20DP"
  340. android:background="@drawable/bssdk_btn_login_bg"
  341. android:enabled="false"
  342. android:text="@string/bssdk_confirm_payment_price_text"
  343. android:textColor="@color/white"
  344. android:textSize="@dimen/TEXT_SIZE_14SP" />
  345. </LinearLayout>
  346. </android.support.v4.widget.NestedScrollView>
  347. </LinearLayout>