bssdk_fragment_gift_bag_details.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  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. <RelativeLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="@dimen/DIMEN_45DP"
  11. android:paddingLeft="@dimen/DIMEN_19DP"
  12. android:paddingRight="@dimen/DIMEN_10DP">
  13. <TextView
  14. android:id="@+id/tv_gift_bag_details_back"
  15. android:layout_width="wrap_content"
  16. android:layout_height="match_parent"
  17. android:layout_centerVertical="true"
  18. android:layout_marginRight="@dimen/DIMEN_18DP"
  19. android:drawableLeft="@drawable/bssdk_left_arrow"
  20. android:drawablePadding="@dimen/DIMEN_5DP"
  21. android:gravity="center"
  22. android:text="返回"
  23. android:textColor="@color/indicator_color" />
  24. <TextView
  25. android:layout_width="match_parent"
  26. android:layout_height="wrap_content"
  27. android:layout_centerInParent="true"
  28. android:layout_marginLeft="@dimen/DIMEN_80DP"
  29. android:gravity="center"
  30. android:text="礼包详情"
  31. android:textColor="@color/white"
  32. android:textSize="@dimen/TEXT_SIZE_15SP" />
  33. </RelativeLayout>
  34. <View
  35. android:layout_width="match_parent"
  36. android:layout_height="@dimen/DIMEN_1DP"
  37. android:background="@color/line_bg171d3c" />
  38. <android.support.v4.widget.NestedScrollView
  39. android:layout_width="match_parent"
  40. android:layout_height="0dp"
  41. android:layout_weight="1">
  42. <RelativeLayout
  43. android:layout_width="match_parent"
  44. android:layout_height="wrap_content">
  45. <LinearLayout
  46. android:id="@+id/ll_gift_bag_details_parent"
  47. android:layout_width="match_parent"
  48. android:layout_height="match_parent"
  49. android:orientation="vertical"
  50. android:visibility="gone"
  51. tools:visibility="visible">
  52. <LinearLayout
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content"
  55. android:gravity="center_vertical"
  56. android:orientation="horizontal"
  57. android:paddingLeft="@dimen/DIMEN_20DP"
  58. android:paddingTop="@dimen/DIMEN_10DP"
  59. android:paddingRight="@dimen/DIMEN_20DP"
  60. android:paddingBottom="@dimen/DIMEN_10DP">
  61. <com.bluestacks.sdk.widget.customview.roundedimageview.RoundedImageView
  62. android:id="@+id/iv_gift_bag_icon"
  63. android:layout_width="@dimen/DIMEN_60DP"
  64. android:layout_height="@dimen/DIMEN_60DP"
  65. android:layout_marginEnd="@dimen/DIMEN_8DP" />
  66. <RelativeLayout
  67. android:layout_width="match_parent"
  68. android:layout_height="wrap_content"
  69. android:orientation="vertical">
  70. <TextView
  71. android:id="@+id/tv_gift_bag_name"
  72. android:layout_width="wrap_content"
  73. android:layout_height="wrap_content"
  74. android:ellipsize="end"
  75. android:maxLines="1"
  76. android:singleLine="true"
  77. android:textColor="@color/white"
  78. android:textSize="@dimen/TEXT_SIZE_14SP"
  79. tools:text="XXXX" />
  80. <TextView
  81. android:id="@+id/tv_gift_bag_type"
  82. android:layout_width="wrap_content"
  83. android:layout_height="wrap_content"
  84. android:layout_below="@+id/tv_gift_bag_name"
  85. android:ellipsize="end"
  86. android:maxLines="1"
  87. android:singleLine="true"
  88. android:textColor="@color/alpha_50_white"
  89. android:textSize="@dimen/TEXT_SIZE_12SP"
  90. tools:text="@string/bssdk_type_text" />
  91. <TextView
  92. android:id="@+id/tv_gift_bag_species"
  93. android:layout_width="wrap_content"
  94. android:layout_height="wrap_content"
  95. android:layout_below="@+id/tv_gift_bag_type"
  96. android:layout_marginRight="@dimen/DIMEN_15DP"
  97. android:layout_toLeftOf="@+id/tv_gift_bag_goto"
  98. android:ellipsize="end"
  99. android:maxLines="2"
  100. android:textColor="@color/alpha_50_white"
  101. android:textSize="@dimen/TEXT_SIZE_12SP"
  102. tools:text="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" />
  103. <TextView
  104. android:id="@+id/tv_gift_bag_goto"
  105. android:layout_width="wrap_content"
  106. android:layout_height="wrap_content"
  107. android:layout_alignBottom="@+id/tv_gift_bag_species"
  108. android:layout_alignParentRight="true"
  109. android:drawableLeft="@drawable/bssdk_green_check_logo"
  110. android:enabled="true"
  111. android:text="已领取"
  112. android:textColor="@color/text_color_2eed2d"
  113. android:textSize="@dimen/TEXT_SIZE_12SP" />
  114. </RelativeLayout>
  115. </LinearLayout>
  116. <View
  117. android:layout_width="match_parent"
  118. android:layout_height="1px"
  119. android:layout_marginLeft="@dimen/DIMEN_20DP"
  120. android:background="@color/line_bg171d3c" />
  121. <LinearLayout
  122. android:layout_width="match_parent"
  123. android:layout_height="wrap_content"
  124. android:gravity="bottom"
  125. android:orientation="horizontal"
  126. android:paddingLeft="@dimen/DIMEN_20DP"
  127. android:paddingTop="@dimen/DIMEN_10DP"
  128. android:paddingRight="@dimen/DIMEN_20DP"
  129. android:paddingBottom="@dimen/DIMEN_10DP">
  130. <TextView
  131. android:id="@+id/tv_gift_bag_details_name"
  132. android:layout_width="wrap_content"
  133. android:layout_height="wrap_content"
  134. android:textColor="@color/white"
  135. android:textSize="@dimen/TEXT_SIZE_14SP"
  136. tools:text="网易渠道/首发礼包" />
  137. <com.bluestacks.sdk.widget.customview.BSMarqueeText
  138. android:layout_width="wrap_content"
  139. android:layout_height="wrap_content"
  140. android:ellipsize="end"
  141. android:singleLine="true"
  142. android:text="(VIP等级x级以上玩家可以领取)"
  143. android:textColor="@color/alpha_50_white"
  144. android:textSize="@dimen/TEXT_SIZE_12SP"
  145. android:visibility="gone" />
  146. </LinearLayout>
  147. <LinearLayout
  148. android:layout_width="match_parent"
  149. android:layout_height="wrap_content"
  150. android:gravity="bottom"
  151. android:orientation="horizontal"
  152. android:paddingLeft="@dimen/DIMEN_20DP"
  153. android:paddingTop="@dimen/DIMEN_10DP"
  154. android:paddingRight="@dimen/DIMEN_20DP"
  155. android:paddingBottom="@dimen/DIMEN_10DP">
  156. <TextView
  157. android:layout_width="wrap_content"
  158. android:layout_height="wrap_content"
  159. android:text="礼包号码"
  160. android:textColor="@color/white"
  161. android:textSize="@dimen/TEXT_SIZE_12SP" />
  162. <TextView
  163. android:id="@+id/tv_gift_bag_details_num"
  164. android:layout_width="0dp"
  165. android:layout_height="wrap_content"
  166. android:layout_marginLeft="@dimen/DIMEN_5DP"
  167. android:layout_weight="1"
  168. android:background="@color/alpha_10_white"
  169. android:paddingLeft="@dimen/DIMEN_8DP"
  170. android:paddingTop="@dimen/DIMEN_4DP"
  171. android:paddingBottom="@dimen/DIMEN_4DP"
  172. android:textColor="@color/alpha_50_white"
  173. android:textSize="@dimen/TEXT_SIZE_12SP"
  174. tools:text="AKSJDFLKJKLASJSKLDFIOU" />
  175. <TextView
  176. android:id="@+id/tv_gift_bag_details_copy"
  177. android:layout_width="wrap_content"
  178. android:layout_height="wrap_content"
  179. android:background="@drawable/bssdk_btn_login_bg_no_radius"
  180. android:paddingLeft="@dimen/DIMEN_17DP"
  181. android:paddingTop="@dimen/DIMEN_4DP"
  182. android:paddingRight="@dimen/DIMEN_17DP"
  183. android:paddingBottom="@dimen/DIMEN_4DP"
  184. android:text="复制"
  185. android:textColor="@color/white"
  186. android:textSize="@dimen/TEXT_SIZE_12SP" />
  187. </LinearLayout>
  188. <RelativeLayout
  189. android:layout_width="match_parent"
  190. android:layout_height="wrap_content"
  191. android:gravity="bottom"
  192. android:orientation="horizontal"
  193. android:paddingLeft="@dimen/DIMEN_20DP"
  194. android:paddingTop="@dimen/DIMEN_10DP"
  195. android:paddingRight="@dimen/DIMEN_20DP"
  196. android:paddingBottom="@dimen/DIMEN_10DP">
  197. <TextView
  198. android:id="@+id/tv_gift_bag_details_time_title"
  199. android:layout_width="wrap_content"
  200. android:layout_height="wrap_content"
  201. android:text="有效时间: "
  202. android:textColor="@color/alpha_50_white"
  203. android:textSize="@dimen/TEXT_SIZE_12SP" />
  204. <TextView
  205. android:id="@+id/tv_gift_bag_details_time"
  206. android:layout_width="wrap_content"
  207. android:layout_height="wrap_content"
  208. android:layout_toRightOf="@+id/tv_gift_bag_details_time_title"
  209. android:textColor="@color/alpha_50_white"
  210. android:textSize="@dimen/TEXT_SIZE_12SP"
  211. tools:text="2018-01-29-2018-01-29" />
  212. <com.bluestacks.sdk.widget.customview.BSMarqueeText
  213. android:layout_width="wrap_content"
  214. android:layout_height="wrap_content"
  215. android:layout_below="@+id/tv_gift_bag_details_time"
  216. android:layout_marginTop="@dimen/DIMEN_3DP"
  217. android:layout_toRightOf="@+id/tv_gift_bag_details_time_title"
  218. android:ellipsize="end"
  219. android:singleLine="true"
  220. android:text="(有效期后此礼包你无法兑换)"
  221. android:textColor="@color/alpha_50_white"
  222. android:textSize="@dimen/TEXT_SIZE_12SP" />
  223. </RelativeLayout>
  224. <LinearLayout
  225. android:layout_width="match_parent"
  226. android:layout_height="wrap_content"
  227. android:gravity="bottom"
  228. android:orientation="horizontal"
  229. android:paddingLeft="@dimen/DIMEN_20DP"
  230. android:paddingTop="@dimen/DIMEN_10DP"
  231. android:paddingRight="@dimen/DIMEN_20DP"
  232. android:paddingBottom="@dimen/DIMEN_10DP">
  233. <TextView
  234. android:layout_width="wrap_content"
  235. android:layout_height="wrap_content"
  236. android:text="礼包内容: "
  237. android:textColor="@color/alpha_50_white"
  238. android:textSize="@dimen/TEXT_SIZE_12SP" />
  239. <TextView
  240. android:id="@+id/tv_gift_bag_details_con"
  241. android:layout_width="wrap_content"
  242. android:layout_height="wrap_content"
  243. android:lineSpacingExtra="@dimen/DIMEN_3DP"
  244. android:textColor="@color/line_bgf4d000"
  245. android:textSize="@dimen/TEXT_SIZE_12SP"
  246. tools:text="金币5000 金币5000 金币5000 金币50 金币5000 金币50 金币5000 金币50 金币5000 金币50 金币5000 金币50 金币5000 金币50 金币5000 金币5000" />
  247. </LinearLayout>
  248. <LinearLayout
  249. android:layout_width="match_parent"
  250. android:layout_height="wrap_content"
  251. android:gravity="bottom"
  252. android:orientation="horizontal"
  253. android:paddingLeft="@dimen/DIMEN_20DP"
  254. android:paddingTop="@dimen/DIMEN_10DP"
  255. android:paddingRight="@dimen/DIMEN_20DP"
  256. android:paddingBottom="@dimen/DIMEN_10DP">
  257. <TextView
  258. android:layout_width="wrap_content"
  259. android:layout_height="wrap_content"
  260. android:text="使用规则: "
  261. android:textColor="@color/alpha_50_white"
  262. android:textSize="@dimen/TEXT_SIZE_12SP" />
  263. <TextView
  264. android:id="@+id/tv_gift_bag_details_rule"
  265. android:layout_width="match_parent"
  266. android:layout_height="wrap_content"
  267. android:lineSpacingExtra="@dimen/DIMEN_3DP"
  268. android:textColor="@color/alpha_50_white"
  269. android:textSize="@dimen/TEXT_SIZE_12SP"
  270. tools:text="进入游戏后点击左上角兑换,输入确认" />
  271. </LinearLayout>
  272. </LinearLayout>
  273. <com.bluestacks.sdk.widget.customview.BSCustomEmptyView
  274. android:id="@+id/cev_gift_bag_details"
  275. android:layout_width="match_parent"
  276. android:layout_height="match_parent"
  277. android:layout_centerInParent="true"
  278. android:visibility="visible"
  279. tools:visibility="gone" />
  280. </RelativeLayout>
  281. </android.support.v4.widget.NestedScrollView>
  282. </LinearLayout>