zzz_user_ranking_content.xml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="wrap_content"
  5. android:orientation="vertical">
  6. <RelativeLayout
  7. android:id="@+id/zzz_host_view_group"
  8. android:layout_width="match_parent"
  9. android:layout_height="@dimen/zzz_billboard_ranking_user_item_height">
  10. <ImageView
  11. android:id="@+id/zzz_user_icon"
  12. android:layout_width="@dimen/zzz_billboard_host_icon_size"
  13. android:layout_height="@dimen/zzz_billboard_host_icon_size"
  14. android:layout_centerVertical="true"
  15. android:layout_marginLeft="@dimen/zzz_billboard_host_icon_margin"
  16. android:scaleType="fitXY"
  17. android:src="@drawable/zzz_user_icon"/>
  18. <LinearLayout
  19. android:layout_width="wrap_content"
  20. android:layout_height="wrap_content"
  21. android:layout_centerVertical="true"
  22. android:layout_marginLeft="@dimen/zzz_billboard_host_icon_margin"
  23. android:layout_toRightOf="@+id/zzz_user_icon"
  24. android:orientation="vertical">
  25. <TextView
  26. android:id="@+id/zzz_host_ranking"
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:textColor="@color/zzz_host_ranking_text_color"
  30. android:textSize="@dimen/zzz_billboard_host_ranking_text_size"/>
  31. <TextView
  32. android:id="@+id/zzz_host_spend"
  33. android:layout_width="wrap_content"
  34. android:layout_height="wrap_content"
  35. android:layout_marginTop="@dimen/zzz_billboard_host_spend_margin_top"
  36. android:textColor="@color/zzz_host_spend_color"
  37. android:textSize="@dimen/zzz_billboard_host_spend_text_size"/>
  38. </LinearLayout>
  39. <TextView
  40. android:id="@+id/zzz_receive_prize"
  41. android:layout_width="@dimen/zzz_billboard_achieve_prize_btn_width"
  42. android:layout_height="@dimen/zzz_billboard_achieve_prize_btn_height"
  43. android:layout_alignParentRight="true"
  44. android:layout_centerVertical="true"
  45. android:gravity="center"
  46. android:layout_marginRight="@dimen/zzz_billboard_achieve_prize_btn_margin_right"
  47. android:background="@drawable/zzz_circle_billboard_achieve_prize"
  48. android:textColor="@color/zzz_white"
  49. android:visibility="visible"/>
  50. </RelativeLayout>
  51. <LinearLayout
  52. android:id="@+id/zzz_rank_top_three_view"
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content"
  55. android:layout_marginTop="@dimen/zzz_two_pix">
  56. <RelativeLayout
  57. android:layout_width="wrap_content"
  58. android:layout_height="wrap_content"
  59. android:layout_weight="1"
  60. android:layout_marginRight="@dimen/zzz_two_pix">
  61. <ImageView
  62. android:id="@+id/zzz_rank_third"
  63. android:layout_width="@dimen/zzz_billboard_host_icon_size"
  64. android:layout_height="@dimen/zzz_billboard_host_icon_size"
  65. android:layout_centerHorizontal="true"
  66. android:layout_marginTop="@dimen/zzz_billboard_rank_other_margin_top"
  67. android:scaleType="fitXY"
  68. android:src="@drawable/zzz_user_icon"/>
  69. <ImageView
  70. android:id="@+id/zzz_rank_third_flag_view"
  71. android:layout_width="wrap_content"
  72. android:layout_height="wrap_content"
  73. android:layout_centerHorizontal="true"
  74. android:layout_marginTop="@dimen/zzz_billboard_rank_three_flag_view_margin_top"
  75. android:src="@drawable/zzz_billboard_third_flag"/>
  76. <TextView
  77. android:id="@+id/zzz_rank_third_spend"
  78. android:layout_width="wrap_content"
  79. android:layout_height="wrap_content"
  80. android:layout_below="@+id/zzz_rank_third_flag_view"
  81. android:layout_centerHorizontal="true"
  82. android:layout_marginTop="@dimen/zzz_billboard_rank_spend_margin_top"
  83. android:textColor="@color/zzz_rank_spend_color"/>
  84. <TextView
  85. android:id="@+id/zzz_rank_third_name"
  86. android:layout_width="wrap_content"
  87. android:layout_height="wrap_content"
  88. android:layout_below="@+id/zzz_rank_third_spend"
  89. android:layout_centerHorizontal="true"
  90. android:layout_marginBottom="@dimen/zzz_billboard_item_user_name_margin_bottom"
  91. android:layout_marginTop="@dimen/zzz_billboard_rank_name_margin_top"
  92. android:singleLine="true"
  93. android:textColor="@color/zzz_rank_name_color"/>
  94. </RelativeLayout>
  95. <RelativeLayout
  96. android:layout_width="wrap_content"
  97. android:layout_height="wrap_content"
  98. android:layout_weight="1">
  99. <ImageView
  100. android:id="@+id/zzz_rank_first"
  101. android:layout_width="@dimen/zzz_billboard_rank_first_icon_size"
  102. android:layout_height="@dimen/zzz_billboard_rank_first_icon_size"
  103. android:scaleType="fitXY"
  104. android:layout_centerHorizontal="true"
  105. android:layout_marginTop="@dimen/zzz_billboard_rank_view_margin_top"
  106. android:src="@drawable/zzz_user_icon"/>
  107. <ImageView
  108. android:id="@+id/zzz_rank_first_flag_view"
  109. android:layout_width="wrap_content"
  110. android:layout_height="wrap_content"
  111. android:layout_centerHorizontal="true"
  112. android:layout_marginTop="@dimen/zzz_billboard_rank_first_flag_view_margin_top"
  113. android:src="@drawable/zzz_billboard_first_flag"/>
  114. <TextView
  115. android:id="@+id/zzz_rank_first_spend"
  116. android:layout_width="wrap_content"
  117. android:layout_height="wrap_content"
  118. android:layout_below="@+id/zzz_rank_first_flag_view"
  119. android:layout_centerHorizontal="true"
  120. android:layout_marginTop="@dimen/zzz_billboard_rank_first_spend_margin_top"
  121. android:textColor="@color/zzz_rank_spend_color"/>
  122. <TextView
  123. android:id="@+id/zzz_rank_first_name"
  124. android:layout_width="wrap_content"
  125. android:layout_height="wrap_content"
  126. android:layout_below="@+id/zzz_rank_first_spend"
  127. android:layout_centerHorizontal="true"
  128. android:layout_marginBottom="@dimen/zzz_billboard_item_user_name_margin_bottom"
  129. android:layout_marginTop="@dimen/zzz_billboard_rank_name_margin_top"
  130. android:singleLine="true"
  131. android:textColor="@color/zzz_rank_name_color"/>
  132. </RelativeLayout>
  133. <RelativeLayout
  134. android:layout_width="wrap_content"
  135. android:layout_height="wrap_content"
  136. android:layout_marginLeft="@dimen/zzz_two_pix"
  137. android:layout_weight="1">
  138. <ImageView
  139. android:id="@+id/zzz_rank_second"
  140. android:layout_width="@dimen/zzz_billboard_host_icon_size"
  141. android:layout_height="@dimen/zzz_billboard_host_icon_size"
  142. android:scaleType="fitXY"
  143. android:layout_centerHorizontal="true"
  144. android:layout_marginTop="@dimen/zzz_billboard_rank_other_margin_top"
  145. android:src="@drawable/zzz_user_icon"/>
  146. <ImageView
  147. android:id="@+id/zzz_rank_second_flag_view"
  148. android:layout_width="wrap_content"
  149. android:layout_height="wrap_content"
  150. android:layout_centerHorizontal="true"
  151. android:layout_marginTop="@dimen/zzz_billboard_rank_three_flag_view_margin_top"
  152. android:src="@drawable/zzz_billboard_second_flag"/>
  153. <TextView
  154. android:id="@+id/zzz_rank_second_spend"
  155. android:layout_width="wrap_content"
  156. android:layout_height="wrap_content"
  157. android:layout_below="@+id/zzz_rank_second_flag_view"
  158. android:layout_centerHorizontal="true"
  159. android:layout_marginTop="@dimen/zzz_billboard_rank_spend_margin_top"
  160. android:textColor="@color/zzz_rank_spend_color"/>
  161. <TextView
  162. android:id="@+id/zzz_rank_second_name"
  163. android:layout_width="wrap_content"
  164. android:layout_height="wrap_content"
  165. android:layout_below="@+id/zzz_rank_second_spend"
  166. android:layout_centerHorizontal="true"
  167. android:layout_marginBottom="@dimen/zzz_billboard_item_user_name_margin_bottom"
  168. android:layout_marginTop="@dimen/zzz_billboard_rank_name_margin_top"
  169. android:singleLine="true"
  170. android:textColor="@color/zzz_rank_name_color"/>
  171. </RelativeLayout>
  172. </LinearLayout>
  173. <LinearLayout
  174. android:id="@+id/zzz_content"
  175. android:layout_width="match_parent"
  176. android:layout_height="wrap_content"
  177. android:layout_marginTop="@dimen/zzz_two_pix"
  178. android:orientation="vertical"/>
  179. </LinearLayout>