luck_activity.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="fill_parent"
  4. android:layout_height="fill_parent"
  5. android:orientation="vertical">
  6. <ImageView
  7. android:id="@+id/activity_bg"
  8. android:layout_width="@dimen/layx480"
  9. android:layout_height="@dimen/layy320"/>
  10. <ImageView
  11. android:layout_width="@dimen/layx480"
  12. android:layout_height="@dimen/layy55"
  13. android:contentDescription="@string/app_name"
  14. android:background="@drawable/shop_title_bg"/>
  15. <ImageView
  16. android:layout_width="@dimen/layx56"
  17. android:layout_height="@dimen/layy46"
  18. android:layout_marginTop="@dimen/layy2"
  19. android:layout_marginLeft="@dimen/layx410"
  20. android:contentDescription="@string/app_name"
  21. android:background="@drawable/shop_back_btn"
  22. android:onClick="onClick_back"/>
  23. <RelativeLayout
  24. android:id="@+id/luck_msg"
  25. android:layout_width="@dimen/layx468"
  26. android:layout_height="@dimen/layy310"
  27. android:layout_marginLeft="@dimen/layx6"
  28. android:layout_marginTop="@dimen/layy5"
  29. android:paddingTop="@dimen/layy12"
  30. >
  31. <ImageView
  32. android:layout_width="@dimen/layx172"
  33. android:layout_height="@dimen/layy132"
  34. android:layout_marginTop="@dimen/layy40"
  35. android:layout_marginLeft="@dimen/layx20"
  36. android:contentDescription="@string/app_name"
  37. android:background="@drawable/luck_msg_big_bg"/>
  38. <ImageView
  39. android:layout_width="@dimen/layx148"
  40. android:layout_height="@dimen/layy33"
  41. android:layout_marginTop="@dimen/layy48"
  42. android:layout_marginLeft="@dimen/layx35"
  43. android:contentDescription="@string/app_name"
  44. android:background="@drawable/luck_msg_small_bg"/>
  45. <ImageView
  46. android:layout_width="@dimen/layx43"
  47. android:layout_height="@dimen/layy33"
  48. android:layout_marginTop="@dimen/layy48"
  49. android:layout_marginLeft="@dimen/layx35"
  50. android:contentDescription="@string/app_name"
  51. android:background="@drawable/luck_money_icon"/>
  52. <TextView
  53. android:id="@+id/user_money"
  54. android:layout_width="@dimen/layx90"
  55. android:layout_height="@dimen/layy33"
  56. android:layout_marginTop="@dimen/layy48"
  57. android:layout_marginLeft="@dimen/layx80"
  58. android:gravity="right|center_vertical"
  59. android:textColor="#ffffff"
  60. android:textStyle="bold"
  61. android:textSize="@dimen/layw16" />
  62. <ImageView
  63. android:layout_width="@dimen/layx148"
  64. android:layout_height="@dimen/layy33"
  65. android:layout_marginTop="@dimen/layy88"
  66. android:layout_marginLeft="@dimen/layx35"
  67. android:contentDescription="@string/app_name"
  68. android:background="@drawable/luck_msg_small_bg"/>
  69. <ImageView
  70. android:layout_width="@dimen/layx43"
  71. android:layout_height="@dimen/layy33"
  72. android:layout_marginTop="@dimen/layy88"
  73. android:layout_marginLeft="@dimen/layx35"
  74. android:contentDescription="@string/app_name"
  75. android:background="@drawable/luck_lottery_icon"/>
  76. <TextView
  77. android:id="@+id/user_lottery"
  78. android:layout_width="@dimen/layx90"
  79. android:layout_height="@dimen/layy33"
  80. android:layout_marginTop="@dimen/layy88"
  81. android:layout_marginLeft="@dimen/layx80"
  82. android:gravity="right|center_vertical"
  83. android:textColor="#ffffff"
  84. android:textStyle="bold"
  85. android:textSize="@dimen/layw16" />
  86. <ImageView
  87. android:layout_width="@dimen/layx148"
  88. android:layout_height="@dimen/layy33"
  89. android:layout_marginTop="@dimen/layy126"
  90. android:layout_marginLeft="@dimen/layx35"
  91. android:contentDescription="@string/app_name"
  92. android:background="@drawable/luck_msg_small_bg"/>
  93. <ImageView
  94. android:layout_width="@dimen/layx43"
  95. android:layout_height="@dimen/layy33"
  96. android:layout_marginTop="@dimen/layy126"
  97. android:layout_marginLeft="@dimen/layx35"
  98. android:contentDescription="@string/app_name"
  99. android:background="@drawable/luck_exchange_icon"/>
  100. <TextView
  101. android:id="@+id/user_exchange"
  102. android:layout_width="@dimen/layx90"
  103. android:layout_height="@dimen/layy33"
  104. android:layout_marginTop="@dimen/layy126"
  105. android:layout_marginLeft="@dimen/layx80"
  106. android:gravity="right|center_vertical"
  107. android:textColor="#ffffff"
  108. android:textStyle="bold"
  109. android:textSize="@dimen/layw16" />
  110. <ImageView
  111. android:layout_width="@dimen/layx172"
  112. android:layout_height="@dimen/layy102"
  113. android:layout_marginTop="@dimen/layy185"
  114. android:layout_marginLeft="@dimen/layx20"
  115. android:contentDescription="@string/app_name"
  116. android:background="@drawable/luck_msg_big_bg"/>
  117. <ImageView
  118. android:layout_width="@dimen/layx164"
  119. android:layout_height="@dimen/layy92"
  120. android:layout_marginTop="@dimen/layy190"
  121. android:layout_marginLeft="@dimen/layx25"
  122. android:contentDescription="@string/app_name"
  123. android:background="@drawable/luck_msg_small_bg"/>
  124. <ScrollView
  125. android:layout_width="@dimen/layx160"
  126. android:layout_height="@dimen/layy90"
  127. android:layout_marginTop="@dimen/layy190"
  128. android:layout_marginLeft="@dimen/layx27" >
  129. <TextView
  130. android:id="@+id/pan_desc"
  131. android:layout_width="wrap_content"
  132. android:layout_height="wrap_content"
  133. android:gravity="left|center_vertical"
  134. android:textColor="#ffffff"
  135. android:lineSpacingMultiplier="1.2"
  136. android:textSize="@dimen/layw12" />
  137. </ScrollView>
  138. <RelativeLayout
  139. android:layout_width="@dimen/layw245"
  140. android:layout_height="@dimen/layw245"
  141. android:layout_marginLeft="@dimen/layx232"
  142. android:layout_marginTop="@dimen/layy40">
  143. <ImageView
  144. android:id="@+id/luck_bg"
  145. android:layout_width="@dimen/layw245"
  146. android:layout_height="@dimen/layw245" />
  147. <ImageView
  148. android:id="@+id/luck_light"
  149. android:layout_width="@dimen/layw241"
  150. android:layout_height="@dimen/layw241"
  151. android:layout_marginLeft="@dimen/layw2"
  152. android:layout_marginTop="@dimen/layw2" />
  153. <com.backfire.doudizhu.luck.ZhuanPanView
  154. android:id="@+id/luck_pan"
  155. android:layout_width="@dimen/layw224"
  156. android:layout_height="@dimen/layw224"
  157. android:layout_centerInParent="true" />
  158. <Button
  159. android:id="@+id/luck_zhen"
  160. android:layout_width="@dimen/layw62"
  161. android:layout_height="@dimen/layw74"
  162. android:layout_marginLeft="@dimen/layw92"
  163. android:layout_marginTop="@dimen/layw82"
  164. android:background="@drawable/luck_pan_start" />
  165. </RelativeLayout>
  166. </RelativeLayout>
  167. <RelativeLayout
  168. android:id="@+id/parser_msg"
  169. android:layout_width="@dimen/layx468"
  170. android:layout_height="@dimen/layy310"
  171. android:layout_marginLeft="@dimen/layx6"
  172. android:layout_marginTop="@dimen/layy5"
  173. android:padding="@dimen/layy12"
  174. android:visibility="gone">
  175. <GridView
  176. android:id="@+id/parser_list"
  177. android:layout_width="fill_parent"
  178. android:layout_height="wrap_content"
  179. android:layout_marginTop="@dimen/layy42"
  180. android:numColumns="auto_fit"
  181. android:columnWidth="@dimen/layx100"
  182. android:horizontalSpacing="@dimen/layw10"
  183. android:verticalSpacing="@dimen/layw10"
  184. android:stretchMode="columnWidth"
  185. android:gravity="center"
  186. android:listSelector="#00000000"
  187. android:visibility="gone">
  188. </GridView>
  189. <TextView
  190. android:id="@+id/parser_text"
  191. android:layout_width="fill_parent"
  192. android:layout_height="fill_parent"
  193. android:layout_marginTop="@dimen/layy33"
  194. android:layout_marginLeft="@dimen/layx12"
  195. android:textColor="#ffffff"
  196. android:textSize="@dimen/layx22"
  197. android:gravity="center"
  198. android:visibility="gone"/>
  199. </RelativeLayout>
  200. <RelativeLayout
  201. android:id="@+id/record_msg"
  202. android:layout_width="@dimen/layx468"
  203. android:layout_height="@dimen/layy310"
  204. android:layout_marginLeft="@dimen/layx6"
  205. android:layout_marginTop="@dimen/layy5"
  206. android:padding="@dimen/layy12"
  207. android:visibility="gone">
  208. <ListView
  209. android:id="@+id/record_list"
  210. android:layout_width="fill_parent"
  211. android:layout_height="@dimen/layy162"
  212. android:layout_marginTop="@dimen/layy35"
  213. android:background="#00000000"
  214. android:cacheColorHint="#00000000"
  215. android:clickable="false"
  216. android:dividerHeight="@dimen/layy10"
  217. android:focusable="false"
  218. android:divider="#00000000"
  219. android:listSelector="#00000000"
  220. android:visibility="gone"/>
  221. <TextView
  222. android:id="@+id/record_text"
  223. android:layout_width="fill_parent"
  224. android:layout_height="@dimen/layy167"
  225. android:layout_marginTop="@dimen/layy33"
  226. android:layout_marginLeft="@dimen/layx12"
  227. android:textColor="#ffffff"
  228. android:textSize="@dimen/layx22"
  229. android:gravity="center"
  230. android:visibility="gone"/>
  231. <ImageView
  232. android:contentDescription="@string/app_name"
  233. android:layout_width="fill_parent"
  234. android:layout_height="@dimen/layy100"
  235. android:layout_marginTop="@dimen/layy210"
  236. android:background="@drawable/luck_msg_small_bg" />
  237. <TextView
  238. android:id="@+id/flow_desc"
  239. android:layout_width="fill_parent"
  240. android:layout_height="@dimen/layy100"
  241. android:layout_marginTop="@dimen/layy210"
  242. android:textColor="#ffffff"
  243. android:textSize="@dimen/layw12"
  244. android:gravity="center_vertical|left"
  245. android:paddingLeft="@dimen/layy12"
  246. android:paddingRight="@dimen/layy12"/>
  247. </RelativeLayout>
  248. <Button
  249. android:id="@+id/onclick_luck"
  250. android:layout_width="@dimen/layx86"
  251. android:layout_height="@dimen/layy34"
  252. android:layout_marginLeft="@dimen/layx16"
  253. android:layout_marginTop="@dimen/layy10"
  254. android:contentDescription="@string/app_name"
  255. android:background="@drawable/activity_tip_title_btn"
  256. android:gravity="center"
  257. android:text="幸运大转盘"
  258. style="@style/shop_title_style"
  259. android:onClick="onclick_luck"/>
  260. <Button
  261. android:id="@+id/onClick_parser"
  262. style="@style/shop_title_style"
  263. android:layout_width="@dimen/layx86"
  264. android:layout_height="@dimen/layy34"
  265. android:layout_marginLeft="@dimen/layx111"
  266. android:layout_marginTop="@dimen/layy10"
  267. android:background="@drawable/activity_tip_title_btn"
  268. android:contentDescription="@string/app_name"
  269. android:gravity="center"
  270. android:onClick="onClick_parser"
  271. android:text="兑奖区" />
  272. <Button
  273. android:id="@+id/onClick_record"
  274. style="@style/shop_title_style"
  275. android:layout_width="@dimen/layx86"
  276. android:layout_height="@dimen/layy34"
  277. android:layout_marginLeft="@dimen/layx207"
  278. android:layout_marginTop="@dimen/layy10"
  279. android:background="@drawable/activity_tip_title_btn"
  280. android:contentDescription="@string/app_name"
  281. android:gravity="center"
  282. android:onClick="onClick_record"
  283. android:text="兑奖记录" />
  284. <RelativeLayout
  285. android:id="@+id/luck_parser_exchange"
  286. android:layout_width="wrap_content"
  287. android:layout_height="@dimen/layy33"
  288. android:layout_marginLeft="@dimen/layx306"
  289. android:layout_marginTop="@dimen/layy8"
  290. android:visibility="gone">
  291. <ImageView
  292. android:layout_width="@dimen/layx43"
  293. android:layout_height="@dimen/layy33"
  294. android:contentDescription="@string/app_name"
  295. android:background="@drawable/luck_exchange_icon"/>
  296. <TextView
  297. android:id="@+id/luck_parser_exchange_text"
  298. android:layout_width="wrap_content"
  299. android:layout_height="@dimen/layy22"
  300. android:textColor="#ffffff"
  301. android:textSize="@dimen/layw12"
  302. android:layout_marginTop="@dimen/layy11"
  303. android:layout_marginLeft="@dimen/layx40"
  304. android:minWidth="@dimen/layx30"
  305. android:gravity="center"
  306. android:background="@drawable/text_bg"/>
  307. </RelativeLayout>
  308. </RelativeLayout>