home_header_view.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <com.usai.ratradefiling.home.HomeHeaderView xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="wrap_content"
  5. android:background="@drawable/gradient_color"
  6. >
  7. <LinearLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="40dp"
  10. android:layout_alignParentBottom="true"
  11. android:background="#e6e6e6"
  12. >
  13. </LinearLayout>
  14. <LinearLayout
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:background="#00000000"
  18. android:orientation="vertical">
  19. <LinearLayout
  20. android:layout_width="match_parent"
  21. android:layout_height="wrap_content"
  22. android:layout_margin="5dp"
  23. android:orientation="horizontal">
  24. <LinearLayout
  25. android:id="@+id/new_count_container"
  26. android:layout_width="0dp"
  27. android:layout_height="wrap_content"
  28. android:layout_weight="1"
  29. android:orientation="vertical">
  30. <TextView
  31. android:id="@+id/home_header_new_count_tv"
  32. android:layout_width="match_parent"
  33. android:layout_height="match_parent"
  34. android:text="0"
  35. android:textAlignment="center"
  36. android:textColor="@color/TFWhite"
  37. android:textSize="17sp" />
  38. <TextView
  39. android:layout_width="match_parent"
  40. android:layout_height="match_parent"
  41. android:text="new"
  42. android:textAlignment="center"
  43. android:textColor="@color/TFWhite"
  44. android:textSize="17sp" />
  45. </LinearLayout>
  46. <RelativeLayout
  47. android:layout_width="1dp"
  48. android:layout_height="match_parent"
  49. android:background="#00000000"
  50. android:gravity="center_vertical">
  51. <RelativeLayout
  52. android:layout_width="1dp"
  53. android:layout_height="10dp"
  54. android:background="#ffffff" />
  55. </RelativeLayout>
  56. <LinearLayout
  57. android:id="@+id/processing_count_container"
  58. android:layout_width="0dp"
  59. android:layout_height="wrap_content"
  60. android:layout_weight="1"
  61. android:orientation="vertical">
  62. <TextView
  63. android:id="@+id/home_header_processing_count_tv"
  64. android:layout_width="match_parent"
  65. android:layout_height="match_parent"
  66. android:text="0"
  67. android:textAlignment="center"
  68. android:textColor="@color/TFWhite"
  69. android:textSize="17sp" />
  70. <TextView
  71. android:layout_width="match_parent"
  72. android:layout_height="match_parent"
  73. android:text="processing"
  74. android:textAlignment="center"
  75. android:textColor="@color/TFWhite"
  76. android:textSize="17sp" />
  77. </LinearLayout>
  78. <RelativeLayout
  79. android:layout_width="1dp"
  80. android:layout_height="match_parent"
  81. android:background="#00000000"
  82. android:gravity="center_vertical">
  83. <RelativeLayout
  84. android:layout_width="1dp"
  85. android:layout_height="10dp"
  86. android:background="#ffffff" />
  87. </RelativeLayout>
  88. <LinearLayout
  89. android:id="@+id/finished_count_container"
  90. android:layout_width="0dp"
  91. android:layout_height="wrap_content"
  92. android:layout_weight="1"
  93. android:orientation="vertical">
  94. <TextView
  95. android:id="@+id/home_header_finish_count_tv"
  96. android:layout_width="match_parent"
  97. android:layout_height="match_parent"
  98. android:text="0"
  99. android:textAlignment="center"
  100. android:textColor="@color/TFWhite"
  101. android:textSize="17sp" />
  102. <TextView
  103. android:layout_width="match_parent"
  104. android:layout_height="match_parent"
  105. android:text="finish"
  106. android:textAlignment="center"
  107. android:textColor="@color/TFWhite"
  108. android:textSize="17sp" />
  109. </LinearLayout>
  110. </LinearLayout>
  111. <!-- Action -->
  112. <LinearLayout
  113. android:layout_width="match_parent"
  114. android:layout_height="wrap_content"
  115. android:layout_marginLeft="5dp"
  116. android:layout_marginTop="10dp"
  117. android:layout_marginRight="5dp"
  118. android:layout_marginBottom="10dp"
  119. android:background="@drawable/home_header_round_corner"
  120. android:clipChildren="false"
  121. android:orientation="horizontal">
  122. <LinearLayout
  123. android:layout_width="0dp"
  124. android:layout_height="wrap_content"
  125. android:layout_marginTop="10dp"
  126. android:layout_marginBottom="5dp"
  127. android:layout_weight="1"
  128. android:gravity="center"
  129. android:orientation="vertical">
  130. <ImageView
  131. android:id="@+id/home_header_sign_out_iv"
  132. android:layout_width="40dp"
  133. android:layout_height="40dp"
  134. android:layout_marginTop="2dp"
  135. android:scaleType="centerInside"
  136. android:src="@drawable/action_setting" />
  137. <TextView
  138. android:layout_width="match_parent"
  139. android:layout_height="match_parent"
  140. android:layout_marginTop="2dp"
  141. android:layout_marginBottom="2dp"
  142. android:text="sign out"
  143. android:textAlignment="center"
  144. android:textColor="#000000"
  145. android:textSize="15sp" />
  146. </LinearLayout>
  147. <LinearLayout
  148. android:layout_width="0dp"
  149. android:layout_height="wrap_content"
  150. android:layout_marginTop="10dp"
  151. android:layout_marginBottom="5dp"
  152. android:layout_weight="1"
  153. android:gravity="center"
  154. android:orientation="vertical">
  155. <ImageView
  156. android:id="@+id/home_header_setting_iv"
  157. android:layout_width="40dp"
  158. android:layout_height="40dp"
  159. android:layout_marginTop="2dp"
  160. android:scaleType="centerInside"
  161. android:src="@drawable/action_setting" />
  162. <TextView
  163. android:layout_width="match_parent"
  164. android:layout_height="match_parent"
  165. android:layout_marginTop="2dp"
  166. android:layout_marginBottom="2dp"
  167. android:text="setting"
  168. android:textAlignment="center"
  169. android:textColor="#000000"
  170. android:textSize="15sp" />
  171. </LinearLayout>
  172. <LinearLayout
  173. android:layout_width="0dp"
  174. android:layout_height="wrap_content"
  175. android:layout_marginTop="10dp"
  176. android:layout_marginBottom="5dp"
  177. android:layout_weight="1"
  178. android:gravity="center"
  179. android:orientation="vertical">
  180. <ImageView
  181. android:id="@+id/home_header_available_iv"
  182. android:layout_width="40dp"
  183. android:layout_height="40dp"
  184. android:layout_marginTop="2dp"
  185. android:scaleType="centerInside"
  186. android:src="@drawable/action_setting" />
  187. <TextView
  188. android:id="@+id/home_header_available_tv"
  189. android:layout_width="match_parent"
  190. android:layout_height="match_parent"
  191. android:layout_marginTop="2dp"
  192. android:layout_marginBottom="2dp"
  193. android:text="available"
  194. android:textAlignment="center"
  195. android:textColor="#000000"
  196. android:textSize="15sp" />
  197. </LinearLayout>
  198. <LinearLayout
  199. android:layout_width="0dp"
  200. android:layout_height="wrap_content"
  201. android:layout_marginTop="10dp"
  202. android:layout_marginBottom="5dp"
  203. android:layout_weight="1"
  204. android:clipChildren="false"
  205. android:gravity="center"
  206. android:orientation="vertical">
  207. <RelativeLayout
  208. android:layout_width="match_parent"
  209. android:layout_height="40dp"
  210. android:clipChildren="false">
  211. <ImageView
  212. android:id="@+id/home_header_message_iv"
  213. android:layout_width="40dp"
  214. android:layout_height="40dp"
  215. android:layout_centerHorizontal="true"
  216. android:layout_marginTop="2dp"
  217. android:scaleType="centerInside"
  218. android:src="@drawable/action_setting" />
  219. <ImageView
  220. android:id="@+id/home_header_message_flag_view"
  221. android:layout_width="20dp"
  222. android:layout_height="20dp"
  223. android:layout_alignTop="@+id/home_header_message_iv"
  224. android:layout_alignRight="@id/home_header_message_iv"
  225. android:layout_marginTop="-6dp"
  226. android:layout_marginRight="-6dp"
  227. android:background="@drawable/action_setting"
  228. android:scaleType="centerInside" />
  229. </RelativeLayout>
  230. <TextView
  231. android:layout_width="match_parent"
  232. android:layout_height="match_parent"
  233. android:layout_marginTop="2dp"
  234. android:layout_marginBottom="2dp"
  235. android:text="@string/message"
  236. android:textAlignment="center"
  237. android:textColor="#000000"
  238. android:textSize="15sp" />
  239. </LinearLayout>
  240. </LinearLayout>
  241. </LinearLayout>
  242. </com.usai.ratradefiling.home.HomeHeaderView>