activity_workbenches.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <layout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. tools:ignore="ResourceName">
  6. <data>
  7. <import type="com.yingyangfly.baselib.utils.User" />
  8. <variable
  9. name="data"
  10. type="com.yingyang.workbenches.entity.CountTrainBean" />
  11. </data>
  12. <LinearLayout
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent"
  15. android:background="@mipmap/icon_staging_background"
  16. android:orientation="vertical">
  17. <androidx.constraintlayout.widget.ConstraintLayout
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content">
  20. <LinearLayout
  21. android:id="@+id/headLayout"
  22. android:layout_width="0dp"
  23. android:layout_height="wrap_content"
  24. app:layout_constraintHorizontal_weight="1"
  25. app:layout_constraintLeft_toLeftOf="parent"
  26. app:layout_constraintRight_toLeftOf="@id/functionLayout"
  27. app:layout_constraintTop_toTopOf="parent">
  28. <androidx.appcompat.widget.AppCompatImageView
  29. android:id="@+id/imageSetting"
  30. android:layout_width="@dimen/divider_80px"
  31. android:layout_height="@dimen/divider_80px"
  32. android:layout_marginStart="@dimen/divider_54px"
  33. android:layout_marginTop="@dimen/divider_34px"
  34. app:isCircle="@{true}"
  35. app:layout_constraintLeft_toLeftOf="parent"
  36. app:layout_constraintTop_toTopOf="parent"
  37. app:loadHeadImg="@{User.INSTANCE.avatar}" />
  38. </LinearLayout>
  39. <androidx.constraintlayout.widget.ConstraintLayout
  40. android:id="@+id/functionLayout"
  41. android:layout_width="0dp"
  42. android:layout_height="wrap_content"
  43. android:orientation="horizontal"
  44. app:layout_constraintHorizontal_weight="1.5"
  45. app:layout_constraintLeft_toRightOf="@id/headLayout"
  46. app:layout_constraintRight_toRightOf="parent"
  47. app:layout_constraintTop_toTopOf="parent">
  48. <LinearLayout
  49. android:id="@+id/layoutLiveBroadcast"
  50. style="@style/workbenches_operate_btn"
  51. android:layout_gravity="center_horizontal"
  52. android:gravity="center_horizontal"
  53. app:layout_constraintLeft_toLeftOf="parent"
  54. app:layout_constraintRight_toLeftOf="@+id/layoutHelp"
  55. tools:ignore="MissingConstraints">
  56. <androidx.appcompat.widget.AppCompatImageView
  57. android:layout_width="@dimen/divider_44px"
  58. android:layout_height="@dimen/divider_35px"
  59. android:layout_marginTop="@dimen/divider_37px"
  60. android:background="@mipmap/icon_live_broadcast"
  61. android:scaleType="centerInside"
  62. tools:ignore="ContentDescription" />
  63. <androidx.appcompat.widget.AppCompatTextView
  64. style="@style/workbenches_home_text"
  65. android:layout_marginTop="@dimen/divider_13px"
  66. android:text="@string/live_broadcast" />
  67. </LinearLayout>
  68. <LinearLayout
  69. android:id="@+id/layoutHelp"
  70. style="@style/workbenches_operate_btn"
  71. android:gravity="center_horizontal"
  72. app:layout_constraintLeft_toRightOf="@+id/layoutLiveBroadcast"
  73. app:layout_constraintRight_toLeftOf="@+id/layoutNotify"
  74. tools:ignore="MissingConstraints">
  75. <androidx.appcompat.widget.AppCompatImageView
  76. android:layout_width="@dimen/divider_38px"
  77. android:layout_height="@dimen/divider_38px"
  78. android:layout_marginTop="@dimen/divider_37px"
  79. android:background="@mipmap/icon_help"
  80. android:scaleType="centerInside" />
  81. <androidx.appcompat.widget.AppCompatTextView
  82. style="@style/workbenches_home_text"
  83. android:layout_marginTop="@dimen/divider_10px"
  84. android:text="@string/help" />
  85. </LinearLayout>
  86. <LinearLayout
  87. android:id="@+id/layoutNotify"
  88. style="@style/workbenches_operate_btn"
  89. android:gravity="center_horizontal"
  90. app:layout_constraintLeft_toRightOf="@+id/layoutHelp"
  91. app:layout_constraintRight_toLeftOf="@+id/layoutServicePackage"
  92. tools:ignore="MissingConstraints">
  93. <androidx.appcompat.widget.AppCompatImageView
  94. android:layout_width="@dimen/divider_34px"
  95. android:layout_height="@dimen/divider_40px"
  96. android:layout_marginTop="@dimen/divider_37px"
  97. android:background="@mipmap/icon_notify"
  98. android:scaleType="centerInside" />
  99. <androidx.appcompat.widget.AppCompatTextView
  100. style="@style/workbenches_home_text"
  101. android:layout_marginTop="@dimen/divider_8px"
  102. android:text="@string/notify" />
  103. </LinearLayout>
  104. <LinearLayout
  105. android:id="@+id/layoutServicePackage"
  106. style="@style/workbenches_operate_btn"
  107. android:gravity="center_horizontal"
  108. app:layout_constraintLeft_toRightOf="@+id/layoutNotify"
  109. app:layout_constraintRight_toRightOf="parent"
  110. tools:ignore="MissingConstraints">
  111. <androidx.appcompat.widget.AppCompatImageView
  112. android:layout_width="@dimen/divider_44px"
  113. android:layout_height="@dimen/divider_36px"
  114. android:layout_marginTop="@dimen/divider_37px"
  115. android:background="@mipmap/icon_service_package"
  116. android:scaleType="centerInside" />
  117. <androidx.appcompat.widget.AppCompatTextView
  118. style="@style/workbenches_home_text"
  119. android:layout_marginTop="@dimen/divider_12px"
  120. android:text="@string/service_package" />
  121. </LinearLayout>
  122. </androidx.constraintlayout.widget.ConstraintLayout>
  123. </androidx.constraintlayout.widget.ConstraintLayout>
  124. <Button
  125. android:id="@+id/cardCognitiveTraining"
  126. android:layout_width="match_parent"
  127. android:layout_height="@dimen/divider_65px"
  128. android:layout_marginLeft="@dimen/divider_53px"
  129. android:layout_marginTop="@dimen/divider_35px"
  130. android:layout_marginRight="@dimen/divider_53px"
  131. android:background="@drawable/tips_shadow_bg"
  132. android:text="@string/cognitive_training"
  133. android:textColor="@color/color_FF4A76FF"
  134. android:textSize="@dimen/divider_32px" />
  135. <LinearLayout
  136. android:id="@+id/businessLayout"
  137. android:layout_width="match_parent"
  138. android:layout_height="@dimen/divider_440px"
  139. android:layout_marginTop="@dimen/divider_5px"
  140. android:orientation="horizontal">
  141. <androidx.recyclerview.widget.RecyclerView
  142. android:id="@+id/rvGame"
  143. android:layout_width="0dp"
  144. android:layout_height="match_parent"
  145. android:layout_marginStart="@dimen/divider_48px"
  146. android:layout_marginTop="@dimen/divider_12px"
  147. android:layout_weight="1"
  148. tools:listitem="@layout/item_game_list" />
  149. <androidx.cardview.widget.CardView
  150. android:layout_width="@dimen/divider_200px"
  151. android:layout_height="@dimen/divider_413px"
  152. android:layout_marginStart="@dimen/divider_8px"
  153. android:layout_marginTop="@dimen/divider_20px"
  154. android:layout_marginEnd="@dimen/divider_52px"
  155. android:layout_marginBottom="@dimen/divider_20px"
  156. app:cardBackgroundColor="@android:color/white"
  157. app:cardCornerRadius="@dimen/divider_26px">
  158. <LinearLayout
  159. android:layout_width="match_parent"
  160. android:layout_height="match_parent"
  161. android:layout_gravity="center_horizontal"
  162. android:layout_margin="@dimen/divider_8px"
  163. android:background="@drawable/bg_work_benches_btn"
  164. android:gravity="center_horizontal"
  165. android:orientation="vertical">
  166. <androidx.appcompat.widget.AppCompatTextView
  167. android:layout_width="wrap_content"
  168. android:layout_height="wrap_content"
  169. android:layout_marginTop="@dimen/divider_30px"
  170. android:text="@string/brain_power_value"
  171. android:textColor="@android:color/white"
  172. android:textSize="@dimen/divider_24px" />
  173. <androidx.appcompat.widget.AppCompatTextView
  174. android:layout_width="wrap_content"
  175. android:layout_height="wrap_content"
  176. android:layout_marginTop="@dimen/divider_9px"
  177. android:text="@{data.mentalPower}"
  178. android:textColor="@android:color/white"
  179. android:textSize="@dimen/divider_34px"
  180. android:textStyle="bold" />
  181. <androidx.appcompat.widget.AppCompatTextView
  182. android:layout_width="wrap_content"
  183. android:layout_height="wrap_content"
  184. android:layout_marginTop="@dimen/divider_35px"
  185. android:text="@string/accumulated_training_duration"
  186. android:textColor="@android:color/white"
  187. android:textSize="@dimen/divider_24px" />
  188. <androidx.appcompat.widget.AppCompatTextView
  189. android:layout_width="wrap_content"
  190. android:layout_height="0dp"
  191. android:layout_marginTop="@dimen/divider_9px"
  192. android:layout_weight="1"
  193. android:text="@{data.trainTime}"
  194. android:textColor="@android:color/white"
  195. android:textSize="@dimen/divider_32px"
  196. android:textStyle="bold" />
  197. <Button
  198. android:id="@+id/btnCheck"
  199. android:layout_width="@dimen/divider_140px"
  200. android:layout_height="@dimen/divider_50px"
  201. android:layout_marginBottom="@dimen/divider_38px"
  202. android:background="@drawable/bg_check_button"
  203. android:text="@string/view"
  204. android:textColor="@color/color_FF3B92DC"
  205. android:textSize="@dimen/divider_28px" />
  206. </LinearLayout>
  207. </androidx.cardview.widget.CardView>
  208. </LinearLayout>
  209. <androidx.constraintlayout.widget.ConstraintLayout
  210. android:id="@+id/layoutOperation"
  211. android:layout_width="match_parent"
  212. android:layout_height="wrap_content"
  213. android:layout_marginTop="@dimen/divider_50px"
  214. android:layout_marginBottom="@dimen/divider_38px"
  215. app:layout_constraintLeft_toLeftOf="parent"
  216. app:layout_constraintRight_toRightOf="parent"
  217. app:layout_constraintTop_toBottomOf="@+id/businessLayout">
  218. <Button
  219. android:id="@+id/layoutFreeTraining"
  220. style="@style/workbenches_card_button"
  221. android:layout_marginStart="@dimen/divider_103px"
  222. android:background="@drawable/bg_home_buttom_button"
  223. android:text="@string/free_training"
  224. app:layout_constraintLeft_toLeftOf="parent"
  225. app:layout_constraintRight_toLeftOf="@+id/layoutOnlineAssessment"
  226. tools:ignore="MissingConstraints" />
  227. <Button
  228. android:id="@+id/layoutOnlineAssessment"
  229. style="@style/workbenches_card_button"
  230. android:background="@drawable/bg_home_buttom_button"
  231. android:text="@string/online_assessment"
  232. app:layout_constraintLeft_toRightOf="@+id/layoutFreeTraining"
  233. app:layout_constraintRight_toLeftOf="@+id/layoutHealthScience"
  234. tools:ignore="MissingConstraints" />
  235. <Button
  236. android:id="@+id/layoutHealthScience"
  237. style="@style/workbenches_card_button"
  238. android:background="@drawable/bg_home_buttom_button"
  239. android:text="@string/health_science_popularization"
  240. app:layout_constraintLeft_toRightOf="@+id/layoutOnlineAssessment"
  241. app:layout_constraintRight_toLeftOf="@+id/layoutLeisureBrain"
  242. tools:ignore="MissingConstraints" />
  243. <Button
  244. android:id="@+id/layoutLeisureBrain"
  245. style="@style/workbenches_card_button"
  246. android:layout_marginEnd="@dimen/divider_103px"
  247. android:background="@drawable/bg_home_buttom_button"
  248. android:text="@string/leisure_brain_building"
  249. app:layout_constraintLeft_toRightOf="@+id/layoutHealthScience"
  250. app:layout_constraintRight_toRightOf="parent"
  251. tools:ignore="MissingConstraints" />
  252. </androidx.constraintlayout.widget.ConstraintLayout>
  253. </LinearLayout>
  254. </layout>