activity_sign.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:background="#f8f8f8">
  6. <RelativeLayout
  7. android:id="@+id/title_bar"
  8. android:layout_width="match_parent"
  9. android:layout_height="?actionBarSize"
  10. android:background="#ffffff"
  11. android:gravity="center_vertical"
  12. android:paddingLeft="16dp"
  13. android:paddingRight="16dp">
  14. <ImageView
  15. android:id="@+id/back_but"
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:layout_centerVertical="true"
  19. android:contentDescription="@string/image_des"
  20. android:padding="10dp"
  21. android:src="@drawable/narrow_back_black" />
  22. <TextView
  23. android:layout_width="wrap_content"
  24. android:layout_height="match_parent"
  25. android:layout_centerInParent="true"
  26. android:gravity="center"
  27. android:text="签到"
  28. android:textColor="#333333"
  29. android:textSize="17sp" />
  30. </RelativeLayout>
  31. <ScrollView
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content"
  34. android:layout_below="@id/title_bar"
  35. android:scrollbars="none">
  36. <LinearLayout
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content"
  39. android:orientation="vertical">
  40. <RelativeLayout
  41. android:layout_width="match_parent"
  42. android:layout_height="wrap_content"
  43. android:background="@drawable/shape_bg_gradient_rectangle_069cfb_9ae7f4"
  44. android:paddingTop="15dp"
  45. android:paddingBottom="23dp">
  46. <ImageView
  47. android:id="@+id/sheep_sign_rectangle"
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"
  50. android:layout_centerHorizontal="true"
  51. android:src="@drawable/loading_01" />
  52. <ImageView
  53. android:id="@+id/sheep_sign_out"
  54. android:layout_width="wrap_content"
  55. android:layout_height="wrap_content"
  56. android:src="@drawable/loading_01" />
  57. <RelativeLayout
  58. android:id="@+id/sheep_sign_egg_rl"
  59. android:layout_width="wrap_content"
  60. android:layout_height="wrap_content"
  61. android:visibility="gone">
  62. <ImageView
  63. android:layout_width="match_parent"
  64. android:layout_height="match_parent"
  65. android:src="@drawable/niudan8" />
  66. <TextView
  67. android:id="@+id/sheep_sign_egg_msg"
  68. android:layout_width="match_parent"
  69. android:layout_height="wrap_content"
  70. android:layout_alignParentBottom="true"
  71. android:layout_marginBottom="5dp"
  72. android:gravity="center"
  73. android:textColor="@color/white"
  74. android:textSize="10sp" />
  75. </RelativeLayout>
  76. <com.sheep.jiuyan.samllsheep.ui.view.EggView
  77. android:id="@+id/eggs_view"
  78. android:layout_width="190dp"
  79. android:layout_height="140dp"
  80. android:layout_centerHorizontal="true"
  81. android:layout_marginTop="100dp" />
  82. <ImageView
  83. android:id="@+id/sheep_sign_machine"
  84. android:layout_width="match_parent"
  85. android:layout_height="wrap_content"
  86. android:adjustViewBounds="true"
  87. android:scaleType="fitXY"
  88. android:src="@drawable/loading_01" />
  89. <TextView
  90. android:id="@+id/active_info"
  91. android:layout_width="wrap_content"
  92. android:layout_height="wrap_content"
  93. android:layout_alignParentEnd="true"
  94. android:background="@drawable/shape_round_rect_bg"
  95. android:gravity="center"
  96. android:paddingLeft="15dp"
  97. android:paddingTop="5dp"
  98. android:paddingRight="15dp"
  99. android:paddingBottom="5dp"
  100. android:text="活动规则"
  101. android:textColor="#ffffff"
  102. android:textSize="12sp" />
  103. </RelativeLayout>
  104. <TextView
  105. android:id="@+id/sign_info_text"
  106. android:layout_width="match_parent"
  107. android:layout_height="wrap_content"
  108. android:background="#ffffff"
  109. android:gravity="center"
  110. android:paddingTop="20dp"
  111. android:text="已签到1天 ,继续6天签到可参与刮奖"
  112. android:textColor="#999999"
  113. android:textSize="12sp" />
  114. <LinearLayout
  115. android:id="@+id/sign_day_list"
  116. android:layout_width="match_parent"
  117. android:layout_height="wrap_content"
  118. android:background="#ffffff"
  119. android:gravity="center"
  120. android:orientation="horizontal">
  121. <TextView
  122. android:layout_width="wrap_content"
  123. android:layout_height="match_parent"
  124. android:layout_margin="10dp"
  125. android:layout_weight="1"
  126. android:background="@drawable/shape_sign_bg_none"
  127. android:drawableBottom="@drawable/coin"
  128. android:gravity="center"
  129. android:minHeight="40dp"
  130. android:padding="5dp"
  131. android:text="1" />
  132. <TextView
  133. android:layout_width="wrap_content"
  134. android:layout_height="match_parent"
  135. android:layout_margin="10dp"
  136. android:layout_weight="1"
  137. android:background="@drawable/shape_sign_bg_none"
  138. android:drawableBottom="@drawable/coin"
  139. android:gravity="center"
  140. android:minHeight="40dp"
  141. android:padding="5dp"
  142. android:text="2" />
  143. <TextView
  144. android:layout_width="wrap_content"
  145. android:layout_height="match_parent"
  146. android:layout_margin="10dp"
  147. android:layout_weight="1"
  148. android:background="@drawable/shape_sign_bg_none"
  149. android:drawableBottom="@drawable/coin"
  150. android:gravity="center"
  151. android:minHeight="40dp"
  152. android:padding="5dp"
  153. android:text="3" />
  154. <TextView
  155. android:layout_width="wrap_content"
  156. android:layout_height="match_parent"
  157. android:layout_margin="10dp"
  158. android:layout_weight="1"
  159. android:background="@drawable/shape_sign_bg_none"
  160. android:drawableBottom="@drawable/coin"
  161. android:gravity="center"
  162. android:minHeight="40dp"
  163. android:padding="5dp"
  164. android:text="4" />
  165. <TextView
  166. android:layout_width="wrap_content"
  167. android:layout_height="match_parent"
  168. android:layout_margin="10dp"
  169. android:layout_weight="1"
  170. android:background="@drawable/shape_sign_bg_none"
  171. android:drawableBottom="@drawable/coin"
  172. android:gravity="center"
  173. android:minHeight="40dp"
  174. android:padding="5dp"
  175. android:text="5" />
  176. <TextView
  177. android:layout_width="wrap_content"
  178. android:layout_height="match_parent"
  179. android:layout_margin="10dp"
  180. android:layout_weight="1"
  181. android:background="@drawable/shape_sign_bg_none"
  182. android:drawableBottom="@drawable/gift_dlose"
  183. android:gravity="center"
  184. android:minHeight="40dp"
  185. android:padding="5dp"
  186. android:text="6" />
  187. </LinearLayout>
  188. <LinearLayout
  189. android:layout_width="match_parent"
  190. android:layout_height="wrap_content"
  191. android:background="@color/white"
  192. android:gravity="center"
  193. android:orientation="vertical">
  194. <TextView
  195. android:id="@+id/sign_now_but"
  196. style="@style/style_button_full"
  197. android:layout_width="wrap_content"
  198. android:layout_height="32dp"
  199. android:layout_gravity="center_horizontal"
  200. android:layout_marginTop="20dp"
  201. android:layout_marginBottom="20dp"
  202. android:paddingLeft="25dp"
  203. android:paddingRight="25dp"
  204. android:text="签到"
  205. android:textColor="@color/white"
  206. android:textSize="16sp" />
  207. <RelativeLayout
  208. android:id="@+id/sign_gua_jiang_qu"
  209. android:layout_width="320dp"
  210. android:layout_height="80dp"
  211. android:layout_marginBottom="20dp"
  212. android:contentDescription="@string/image_des"
  213. android:visibility="gone">
  214. <ImageView
  215. android:id="@+id/act_sign_eras_iv"
  216. android:layout_width="match_parent"
  217. android:layout_height="match_parent"
  218. android:adjustViewBounds="true"
  219. android:scaleType="fitXY"/>
  220. <com.sheep.gamegroup.view.customview.ErasableTextView
  221. android:id="@+id/sign_etv"
  222. android:layout_width="320dp"
  223. android:layout_height="80dp"
  224. android:gravity="center"
  225. android:text="绵羊币:0.01"
  226. android:textColor="#999999"
  227. android:textSize="30sp" />
  228. </RelativeLayout>
  229. </LinearLayout>
  230. <LinearLayout
  231. android:layout_width="match_parent"
  232. android:layout_height="wrap_content"
  233. android:layout_marginTop="10dp"
  234. android:background="#ffffff"
  235. android:orientation="horizontal"
  236. android:padding="16dp">
  237. <ImageView
  238. android:layout_width="62dp"
  239. android:layout_height="62dp"
  240. android:layout_marginEnd="12dp"
  241. android:adjustViewBounds="true"
  242. android:contentDescription="@string/image_des"
  243. android:src="@mipmap/icon" />
  244. <LinearLayout
  245. android:layout_width="0dp"
  246. android:layout_height="match_parent"
  247. android:layout_weight="1"
  248. android:orientation="vertical">
  249. <TextView
  250. android:layout_width="match_parent"
  251. android:layout_height="wrap_content"
  252. android:text="早起打卡,好习惯,高回报"
  253. android:textColor="#333333" />
  254. <TextView
  255. android:id="@+id/go_to_pack_but"
  256. android:layout_width="wrap_content"
  257. android:layout_height="wrap_content"
  258. android:layout_gravity="right"
  259. android:background="@drawable/shape_but_blue_bg"
  260. android:paddingLeft="10dp"
  261. android:paddingTop="5dp"
  262. android:paddingRight="10dp"
  263. android:paddingBottom="5dp"
  264. android:text="立即参与"
  265. android:textColor="@color/white"
  266. android:textSize="12sp" />
  267. <LinearLayout
  268. android:layout_width="wrap_content"
  269. android:layout_height="wrap_content"
  270. android:orientation="horizontal">
  271. <TextView
  272. android:id="@+id/sign_card_num"
  273. android:layout_width="wrap_content"
  274. android:layout_height="wrap_content"
  275. android:text="2000"
  276. android:textColor="#fffe5864"
  277. android:textSize="10sp" />
  278. <TextView
  279. android:layout_width="wrap_content"
  280. android:layout_height="wrap_content"
  281. android:text="人参与"
  282. android:textColor="#8E8E8E"
  283. android:textSize="10sp" />
  284. </LinearLayout>
  285. </LinearLayout>
  286. </LinearLayout>
  287. <RelativeLayout
  288. android:id="@+id/go_to_yaoqing"
  289. android:layout_width="match_parent"
  290. android:layout_height="wrap_content"
  291. android:layout_marginTop="10dp"
  292. android:layout_marginBottom="10dp"
  293. android:background="@color/white"
  294. android:paddingStart="16dp"
  295. android:paddingTop="12dp"
  296. android:paddingEnd="16dp"
  297. android:paddingBottom="12dp">
  298. <ImageView
  299. android:id="@+id/act_sign_ask_friend_iv"
  300. android:layout_width="wrap_content"
  301. android:layout_height="76dp"
  302. android:adjustViewBounds="true"
  303. android:contentDescription="@string/image_des"
  304. android:scaleType="fitXY"
  305. android:src="@drawable/icon" />
  306. <LinearLayout
  307. android:layout_width="match_parent"
  308. android:layout_height="wrap_content"
  309. android:layout_centerVertical="true"
  310. android:orientation="vertical">
  311. <TextView
  312. android:id="@+id/act_sign_ask_friend_tv"
  313. android:layout_width="match_parent"
  314. android:layout_height="wrap_content"
  315. android:gravity="end"
  316. android:text="收徒大狂欢"
  317. android:textColor="#020202"
  318. android:textSize="22sp" />
  319. <TextView
  320. android:layout_width="match_parent"
  321. android:layout_height="wrap_content"
  322. android:layout_marginTop="2dp"
  323. android:gravity="end"
  324. android:text="邀新最多可获300元"
  325. android:textColor="#999999"
  326. android:textSize="14sp" />
  327. </LinearLayout>
  328. </RelativeLayout>
  329. </LinearLayout>
  330. </ScrollView>
  331. </RelativeLayout>