学考乐离线App
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

activity_course_statistics_detail.xml 36KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681
  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. <data>
  6. <variable
  7. name="course"
  8. type="com.xkl.cdl.data.bean.StatisticsCourse" />
  9. </data>
  10. <androidx.appcompat.widget.LinearLayoutCompat
  11. android:layout_width="match_parent"
  12. android:layout_height="match_parent"
  13. android:background="@color/white_1"
  14. android:orientation="vertical"
  15. tools:context=".module.m_statics.CourseStatisticsDetailActivity">
  16. <com.suliang.common.widget.TitleBar
  17. android:id="@+id/title_bar"
  18. android:layout_width="match_parent"
  19. android:layout_height="@dimen/title_bar_height"
  20. app:barBackground="@color/white"
  21. app:titleTextValue="@{course.course.courseTitle}"/>
  22. <androidx.core.widget.NestedScrollView
  23. android:layout_width="match_parent"
  24. android:layout_height="match_parent">
  25. <androidx.constraintlayout.widget.ConstraintLayout
  26. android:layout_width="match_parent"
  27. android:layout_height="match_parent"
  28. android:layout_margin="@dimen/global_spacing">
  29. <!--top title-->
  30. <androidx.constraintlayout.widget.ConstraintLayout
  31. android:id="@+id/layout_top"
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content"
  34. android:background="@drawable/shape_rounder_12_white"
  35. android:padding="12dp"
  36. app:layout_constraintTop_toTopOf="parent">
  37. <com.google.android.material.imageview.ShapeableImageView
  38. android:id="@+id/img_course"
  39. android:layout_width="52dp"
  40. android:layout_height="0dp"
  41. android:scaleType="fitXY"
  42. app:imgFilePath="@{course.cover}"
  43. app:layout_constraintDimensionRatio="52:72"
  44. app:layout_constraintStart_toStartOf="parent"
  45. app:layout_constraintTop_toTopOf="parent"
  46. app:shapeAppearance="@style/roundedCornerStyle"
  47. tools:src="@color/main_text_color" />
  48. <ImageView
  49. android:id="@+id/iv_change_course"
  50. android:layout_width="wrap_content"
  51. android:layout_height="wrap_content"
  52. android:src="@drawable/ic_change"
  53. app:layout_constraintBottom_toBottomOf="parent"
  54. app:layout_constraintEnd_toEndOf="parent"
  55. app:layout_constraintTop_toTopOf="parent" />
  56. <TextView
  57. android:id="@+id/tv_course_name"
  58. android:layout_width="0dp"
  59. android:layout_height="wrap_content"
  60. android:layout_marginStart="8dp"
  61. android:layout_marginTop="4dp"
  62. android:layout_marginEnd="@dimen/global_spacing"
  63. android:ellipsize="end"
  64. android:maxLines="2"
  65. android:text="@{course.course.courseTitle}"
  66. android:textColor="@color/main_text_color"
  67. android:textSize="@dimen/smallSize"
  68. app:layout_constraintEnd_toStartOf="@+id/iv_change_course"
  69. app:layout_constraintStart_toEndOf="@+id/img_course"
  70. app:layout_constraintTop_toTopOf="@+id/img_course"
  71. tools:text="kjdkjsdkgjaskdlgjsadgjasldgddddffddfdfdffddjsakldgjsdakg" />
  72. <ProgressBar
  73. android:id="@+id/progress_course"
  74. style="@style/Widget.AppCompat.ProgressBar.Horizontal"
  75. android:layout_width="120dp"
  76. android:layout_height="4dp"
  77. android:layout_marginBottom="8dp"
  78. android:max="1000"
  79. android:progressDrawable="@drawable/progress_center"
  80. android:progressTint="@color/theme_color"
  81. app:courseStatisticsLearnProgressFormat="@{(int)course.course.courseLearnProgress}"
  82. app:layout_constraintBottom_toBottomOf="@+id/img_course"
  83. app:layout_constraintStart_toStartOf="@+id/tv_course_name"
  84. tools:progress="40" />
  85. <TextView
  86. android:id="@+id/tv_progress"
  87. android:layout_width="wrap_content"
  88. android:layout_height="wrap_content"
  89. android:layout_marginStart="12dp"
  90. android:layout_marginBottom="4dp"
  91. android:textColor="@color/main_text_color"
  92. android:textSize="@dimen/smallerSize"
  93. app:courseStatisticsLearnProgressTextViewFormat="@{(int)course.course.courseLearnProgress}"
  94. app:layout_constraintBottom_toBottomOf="@+id/img_course"
  95. app:layout_constraintStart_toEndOf="@+id/progress_course"
  96. tools:text="10%" />
  97. </androidx.constraintlayout.widget.ConstraintLayout>
  98. <!--测试成绩-->
  99. <androidx.constraintlayout.widget.ConstraintLayout
  100. android:id="@+id/layout_test_score"
  101. android:layout_width="0dp"
  102. android:layout_height="wrap_content"
  103. android:layout_marginTop="12dp"
  104. android:layout_marginEnd="12dp"
  105. android:background="@drawable/shape_rounder_12_white"
  106. android:padding="12dp"
  107. app:layout_constraintEnd_toStartOf="@+id/layout_efficient"
  108. app:layout_constraintStart_toStartOf="parent"
  109. app:layout_constraintTop_toBottomOf="@+id/layout_top"
  110. app:layout_goneMarginEnd="0dp">
  111. <TextView
  112. android:id="@+id/tv_test_flag"
  113. android:layout_width="wrap_content"
  114. android:layout_height="wrap_content"
  115. android:text="测试成绩对比"
  116. android:textColor="@color/main_text_color"
  117. android:textSize="@dimen/bigSize"
  118. android:textStyle="bold"
  119. app:layout_constraintStart_toStartOf="parent"
  120. app:layout_constraintTop_toTopOf="parent" />
  121. <ImageView
  122. android:id="@+id/iv_test_state"
  123. android:layout_width="60dp"
  124. android:layout_height="0dp"
  125. android:layout_marginTop="@dimen/global_spacing"
  126. app:layout_constraintDimensionRatio="60:92"
  127. app:layout_constraintStart_toStartOf="parent"
  128. app:layout_constraintTop_toBottomOf="@+id/tv_test_flag" />
  129. <TextView
  130. android:id="@+id/tv_test_state"
  131. android:layout_width="wrap_content"
  132. android:layout_height="wrap_content"
  133. android:layout_marginStart="8dp"
  134. android:textSize="@dimen/smallerSize"
  135. app:layout_constraintStart_toEndOf="@+id/iv_test_state"
  136. app:layout_constraintTop_toTopOf="@+id/iv_test_state"
  137. tools:text="+12" />
  138. <TextView
  139. android:id="@+id/tv_before_total_flag"
  140. android:layout_width="wrap_content"
  141. android:layout_height="wrap_content"
  142. android:text="学前总测试"
  143. android:textColor="@color/main_text_color"
  144. android:textSize="@dimen/smallerSize"
  145. app:layout_constraintStart_toStartOf="@+id/tv_test_state"
  146. app:layout_constraintTop_toBottomOf="@+id/tv_test_state" />
  147. <TextView
  148. android:id="@+id/tv_before_total"
  149. android:layout_width="wrap_content"
  150. android:layout_height="wrap_content"
  151. android:text="12分"
  152. android:textColor="@color/theme_color"
  153. android:textSize="@dimen/smallSize"
  154. android:textStyle="bold"
  155. app:layout_constraintStart_toStartOf="@+id/tv_before_total_flag"
  156. app:layout_constraintTop_toBottomOf="@+id/tv_before_total_flag" />
  157. <TextView
  158. android:id="@+id/tv_after_total_flag"
  159. android:layout_width="wrap_content"
  160. android:layout_height="wrap_content"
  161. android:text="学前总测试"
  162. android:textColor="@color/main_text_color"
  163. android:textSize="@dimen/smallerSize"
  164. app:layout_constraintStart_toStartOf="@+id/tv_before_total"
  165. app:layout_constraintTop_toBottomOf="@+id/tv_before_total" />
  166. <TextView
  167. android:id="@+id/tv_after_total"
  168. android:layout_width="wrap_content"
  169. android:layout_height="wrap_content"
  170. android:text="14分"
  171. android:textColor="@color/red_1"
  172. android:textSize="@dimen/smallSize"
  173. android:textStyle="bold"
  174. app:layout_constraintStart_toStartOf="@+id/tv_after_total_flag"
  175. app:layout_constraintTop_toBottomOf="@+id/tv_after_total_flag" />
  176. </androidx.constraintlayout.widget.ConstraintLayout>
  177. <!--学习效率-->
  178. <androidx.constraintlayout.widget.ConstraintLayout
  179. android:id="@+id/layout_efficient"
  180. android:layout_width="0dp"
  181. android:layout_height="0dp"
  182. android:background="@drawable/shape_rounder_12_white"
  183. android:padding="12dp"
  184. app:layout_constraintBottom_toBottomOf="@+id/layout_test_score"
  185. app:layout_constraintEnd_toEndOf="parent"
  186. app:layout_constraintStart_toEndOf="@+id/layout_test_score"
  187. app:layout_constraintTop_toTopOf="@+id/layout_test_score">
  188. <TextView
  189. android:id="@+id/tv_efficient_flag"
  190. android:layout_width="wrap_content"
  191. android:layout_height="wrap_content"
  192. android:text="学习效率"
  193. android:textColor="@color/main_text_color"
  194. android:textSize="@dimen/bigSize"
  195. android:textStyle="bold"
  196. app:layout_constraintStart_toStartOf="parent"
  197. app:layout_constraintTop_toTopOf="parent" />
  198. <com.xkl.cdl.widget.MyRankingView
  199. android:id="@+id/ranking_efficient"
  200. android:layout_width="80dp"
  201. android:layout_height="80dp"
  202. android:gravity="center"
  203. android:orientation="vertical"
  204. app:backgroundColor="@color/translation"
  205. app:borderWidth="4dp"
  206. app:layout_constraintBottom_toBottomOf="parent"
  207. app:layout_constraintEnd_toEndOf="parent"
  208. app:layout_constraintStart_toStartOf="parent"
  209. app:layout_constraintTop_toBottomOf="@id/tv_efficient_flag"
  210. app:normalColor="@color/gray_1"
  211. app:progressColor="@color/red_2"
  212. tools:progressNumber="20">
  213. <TextView
  214. android:id="@+id/tv_efficient"
  215. android:layout_width="wrap_content"
  216. android:layout_height="wrap_content"
  217. android:textColor="@color/main_text_color"
  218. android:textSize="@dimen/smallSize"
  219. android:textStyle="bold"
  220. app:layout_constraintStart_toStartOf="parent"
  221. app:layout_constraintTop_toTopOf="parent"
  222. tools:text="12%" />
  223. <TextView
  224. android:id="@+id/tv_efficient_state"
  225. android:layout_width="wrap_content"
  226. android:layout_height="wrap_content"
  227. android:gravity="center"
  228. android:textColor="@color/main_text_color"
  229. android:textSize="@dimen/smallerSize"
  230. app:layout_constraintStart_toStartOf="parent"
  231. app:layout_constraintTop_toTopOf="parent"
  232. tools:drawableStart="@drawable/ic_rise"
  233. tools:text="+3.4%" />
  234. </com.xkl.cdl.widget.MyRankingView>
  235. </androidx.constraintlayout.widget.ConstraintLayout>
  236. <!--学习时长分析-->
  237. <androidx.constraintlayout.widget.ConstraintLayout
  238. android:id="@+id/layout_duration"
  239. android:layout_width="0dp"
  240. android:layout_height="wrap_content"
  241. android:layout_marginTop="12dp"
  242. android:background="@drawable/shape_rounder_12_white"
  243. android:padding="12dp"
  244. app:layout_constraintEnd_toEndOf="parent"
  245. app:layout_constraintStart_toStartOf="parent"
  246. app:layout_constraintTop_toBottomOf="@+id/layout_test_score">
  247. <TextView
  248. android:id="@+id/tv_duration_flag"
  249. android:layout_width="wrap_content"
  250. android:layout_height="wrap_content"
  251. android:text="学习时长分析"
  252. android:textColor="@color/main_text_color"
  253. android:textSize="@dimen/bigSize"
  254. android:textStyle="bold"
  255. app:layout_constraintStart_toStartOf="parent"
  256. app:layout_constraintTop_toTopOf="parent" />
  257. <TextView
  258. android:id="@+id/tv_duration_flag_1"
  259. android:layout_width="wrap_content"
  260. android:layout_height="wrap_content"
  261. android:layout_marginTop="12dp"
  262. android:text="总学习时长"
  263. android:textColor="@color/gray_2"
  264. android:textSize="@dimen/smallSize"
  265. app:layout_constraintStart_toStartOf="parent"
  266. app:layout_constraintTop_toBottomOf="@+id/tv_duration_flag" />
  267. <!--总学习时长-->
  268. <TextView
  269. android:id="@+id/tv_total_duration"
  270. android:layout_width="wrap_content"
  271. android:layout_height="wrap_content"
  272. android:textColor="@color/main_text_color"
  273. android:textSize="36dp"
  274. android:textStyle="bold"
  275. app:layout_constraintStart_toStartOf="parent"
  276. app:layout_constraintTop_toBottomOf="@+id/tv_duration_flag_1"
  277. tools:text="12.1" />
  278. <TextView
  279. android:id="@+id/tv_total_duration_unit"
  280. android:layout_width="wrap_content"
  281. android:layout_height="wrap_content"
  282. android:layout_marginStart="4dp"
  283. android:textColor="@color/main_text_color"
  284. android:textSize="@dimen/normalSize"
  285. android:textStyle="bold"
  286. app:layout_constraintBaseline_toBaselineOf="@+id/tv_total_duration"
  287. app:layout_constraintStart_toEndOf="@+id/tv_total_duration"
  288. tools:text="小时" />
  289. <TextView
  290. android:id="@+id/tv_duration_state"
  291. android:layout_width="wrap_content"
  292. android:layout_height="wrap_content"
  293. android:layout_marginStart="8dp"
  294. android:gravity="center"
  295. android:textColor="@color/main_text_color"
  296. android:textSize="@dimen/normalSize"
  297. app:layout_constraintBaseline_toBaselineOf="@+id/tv_total_duration_unit"
  298. app:layout_constraintStart_toEndOf="@+id/tv_total_duration_unit"
  299. tools:drawableStart="@drawable/ic_rise"
  300. tools:text="+3.4%" />
  301. <TextView
  302. android:id="@+id/tv_duration_range"
  303. android:layout_width="wrap_content"
  304. android:layout_height="wrap_content"
  305. android:layout_marginStart="8dp"
  306. android:gravity="center"
  307. android:textColor="@color/gray_2"
  308. android:textSize="@dimen/smallSize"
  309. app:layout_constraintBaseline_toBaselineOf="@+id/tv_duration_state"
  310. app:layout_constraintStart_toEndOf="@+id/tv_duration_state"
  311. android:text="(本周)" />
  312. <TextView
  313. android:id="@+id/tv_valid_time_flag"
  314. android:layout_width="0dp"
  315. android:layout_height="wrap_content"
  316. android:layout_marginTop="20dp"
  317. android:text="有效学习时长"
  318. android:textColor="@color/red_2"
  319. android:textSize="@dimen/smallerSize"
  320. app:layout_constraintEnd_toStartOf="@+id/tv_review_time_flag"
  321. app:layout_constraintHorizontal_chainStyle="spread"
  322. app:layout_constraintStart_toStartOf="parent"
  323. app:layout_constraintTop_toBottomOf="@+id/tv_total_duration" />
  324. <TextView
  325. android:id="@+id/tv_review_time_flag"
  326. android:layout_width="0dp"
  327. android:layout_height="wrap_content"
  328. android:text="有效复习时长"
  329. android:textColor="@color/green_1"
  330. android:textSize="@dimen/smallerSize"
  331. app:layout_constraintEnd_toStartOf="@+id/tv_free_time_flag"
  332. app:layout_constraintStart_toEndOf="@+id/tv_valid_time_flag"
  333. app:layout_constraintTop_toTopOf="@+id/tv_valid_time_flag" />
  334. <TextView
  335. android:id="@+id/tv_free_time_flag"
  336. android:layout_width="0dp"
  337. android:layout_height="wrap_content"
  338. android:text="空闲时长"
  339. android:textColor="@color/theme_color"
  340. android:textSize="@dimen/smallerSize"
  341. app:layout_constraintEnd_toEndOf="parent"
  342. app:layout_constraintStart_toEndOf="@+id/tv_review_time_flag"
  343. app:layout_constraintTop_toTopOf="@+id/tv_valid_time_flag" />
  344. <TextView
  345. android:id="@+id/tv_valid_time"
  346. android:layout_width="wrap_content"
  347. android:layout_height="wrap_content"
  348. android:textColor="@color/red_2"
  349. android:textSize="22dp"
  350. android:textStyle="bold"
  351. app:layout_constraintStart_toStartOf="@+id/tv_valid_time_flag"
  352. app:layout_constraintTop_toBottomOf="@+id/tv_valid_time_flag"
  353. tools:text="12.1" />
  354. <TextView
  355. android:id="@+id/tv_valid_time_unit"
  356. android:layout_width="wrap_content"
  357. android:layout_height="wrap_content"
  358. android:layout_marginStart="4dp"
  359. android:textColor="@color/red_2"
  360. android:textSize="@dimen/smallerSize"
  361. android:textStyle="bold"
  362. app:layout_constraintBaseline_toBaselineOf="@+id/tv_valid_time"
  363. app:layout_constraintStart_toEndOf="@+id/tv_valid_time"
  364. tools:text="小时" />
  365. <TextView
  366. android:id="@+id/tv_review_time"
  367. android:layout_width="wrap_content"
  368. android:layout_height="wrap_content"
  369. android:textColor="@color/green_1"
  370. android:textSize="22dp"
  371. android:textStyle="bold"
  372. app:layout_constraintStart_toStartOf="@+id/tv_review_time_flag"
  373. app:layout_constraintTop_toBottomOf="@+id/tv_review_time_flag"
  374. tools:text="12.1" />
  375. <TextView
  376. android:id="@+id/tv_review_time_unit"
  377. android:layout_width="wrap_content"
  378. android:layout_height="wrap_content"
  379. android:layout_marginStart="4dp"
  380. android:textColor="@color/green_1"
  381. android:textSize="@dimen/smallerSize"
  382. android:textStyle="bold"
  383. app:layout_constraintBaseline_toBaselineOf="@+id/tv_review_time"
  384. app:layout_constraintStart_toEndOf="@+id/tv_review_time"
  385. tools:text="小时" />
  386. <TextView
  387. android:id="@+id/tv_free_time"
  388. android:layout_width="wrap_content"
  389. android:layout_height="wrap_content"
  390. android:textColor="@color/theme_color"
  391. android:textSize="22dp"
  392. android:textStyle="bold"
  393. app:layout_constraintStart_toStartOf="@+id/tv_free_time_flag"
  394. app:layout_constraintTop_toBottomOf="@+id/tv_free_time_flag"
  395. tools:text="12.1" />
  396. <TextView
  397. android:id="@+id/tv_free_time_unit"
  398. android:layout_width="wrap_content"
  399. android:layout_height="wrap_content"
  400. android:layout_marginStart="4dp"
  401. android:textColor="@color/theme_color"
  402. android:textSize="@dimen/smallerSize"
  403. android:textStyle="bold"
  404. app:layout_constraintBaseline_toBaselineOf="@+id/tv_free_time"
  405. app:layout_constraintStart_toEndOf="@+id/tv_free_time"
  406. tools:text="小时" />
  407. <com.github.mikephil.charting.charts.BarChart
  408. android:id="@+id/bar_chart"
  409. android:layout_width="match_parent"
  410. android:layout_height="0dp"
  411. app:layout_constraintDimensionRatio="343:200"
  412. app:layout_constraintStart_toStartOf="parent"
  413. app:layout_constraintEnd_toEndOf="parent"
  414. app:layout_constraintTop_toBottomOf="@+id/tv_valid_time"
  415. android:layout_marginTop="10dp"/>
  416. </androidx.constraintlayout.widget.ConstraintLayout>
  417. <!--课程进度-->
  418. <androidx.constraintlayout.widget.ConstraintLayout
  419. android:id="@+id/layout_course_progress"
  420. android:layout_width="0dp"
  421. android:layout_height="wrap_content"
  422. android:layout_marginTop="12dp"
  423. android:background="@drawable/shape_rounder_12_white"
  424. android:padding="12dp"
  425. app:layout_constraintEnd_toEndOf="parent"
  426. app:layout_constraintStart_toStartOf="parent"
  427. app:layout_constraintTop_toBottomOf="@+id/layout_duration">
  428. <TextView
  429. android:id="@+id/tv_course_progress_flag"
  430. android:layout_width="wrap_content"
  431. android:layout_height="wrap_content"
  432. android:text="课程进度"
  433. android:textColor="@color/main_text_color"
  434. android:textSize="@dimen/bigSize"
  435. android:textStyle="bold"
  436. app:layout_constraintStart_toStartOf="parent"
  437. app:layout_constraintTop_toTopOf="parent" />
  438. <androidx.constraintlayout.widget.ConstraintLayout
  439. android:layout_width="match_parent"
  440. android:layout_height="wrap_content"
  441. android:paddingTop="20dp"
  442. android:paddingBottom="20dp"
  443. android:layout_marginTop="12dp"
  444. app:layout_constraintTop_toBottomOf="@+id/tv_course_progress_flag"
  445. android:background="@drawable/shape_rounder_8_stroke_gray1"
  446. >
  447. <com.xkl.cdl.widget.MyRankingView
  448. android:id="@+id/ranking_1"
  449. android:layout_width="80dp"
  450. android:layout_height="80dp"
  451. android:gravity="center"
  452. android:orientation="vertical"
  453. app:backgroundColor="@color/translation"
  454. app:borderWidth="4dp"
  455. app:normalColor="@color/gray_1"
  456. app:progressColor="@color/green_1"
  457. tools:progressNumber="20"
  458. app:layout_constraintTop_toTopOf="parent"
  459. app:layout_constraintStart_toStartOf="parent"
  460. app:layout_constraintBottom_toBottomOf="parent"
  461. app:layout_constraintEnd_toStartOf="@+id/ranking_2">
  462. <TextView
  463. android:id="@+id/tv_ranking_1_flag"
  464. android:layout_width="wrap_content"
  465. android:layout_height="wrap_content"
  466. android:textColor="@color/gray_2"
  467. android:textSize="11dp"
  468. app:layout_constraintStart_toStartOf="parent"
  469. app:layout_constraintTop_toTopOf="parent"
  470. android:text="已学章节" />
  471. <TextView
  472. android:id="@+id/tv_ranking_1_value"
  473. android:layout_width="wrap_content"
  474. android:layout_height="wrap_content"
  475. android:gravity="center"
  476. android:textColor="@color/main_text_color"
  477. android:textSize="11dp"
  478. app:layout_constraintStart_toStartOf="parent"
  479. app:layout_constraintTop_toTopOf="parent"
  480. tools:text="1/12" />
  481. </com.xkl.cdl.widget.MyRankingView>
  482. <com.xkl.cdl.widget.MyRankingView
  483. android:id="@+id/ranking_2"
  484. android:layout_width="80dp"
  485. android:layout_height="80dp"
  486. android:gravity="center"
  487. android:orientation="vertical"
  488. app:backgroundColor="@color/translation"
  489. app:borderWidth="4dp"
  490. app:normalColor="@color/gray_1"
  491. app:progressColor="@color/theme_color"
  492. tools:progressNumber="20"
  493. app:layout_constraintTop_toTopOf="parent"
  494. app:layout_constraintStart_toEndOf="@+id/ranking_1"
  495. app:layout_constraintBottom_toBottomOf="parent"
  496. app:layout_constraintEnd_toStartOf="@+id/ranking_3">
  497. <TextView
  498. android:id="@+id/tv_ranking_2_flag"
  499. android:layout_width="wrap_content"
  500. android:layout_height="wrap_content"
  501. android:textColor="@color/gray_2"
  502. android:textSize="11dp"
  503. app:layout_constraintStart_toStartOf="parent"
  504. app:layout_constraintTop_toTopOf="parent"
  505. tools:text="已学词汇量/已学知识点" />
  506. <TextView
  507. android:id="@+id/tv_ranking_2_value"
  508. android:layout_width="wrap_content"
  509. android:layout_height="wrap_content"
  510. android:gravity="center"
  511. android:textColor="@color/main_text_color"
  512. android:textSize="11dp"
  513. app:layout_constraintStart_toStartOf="parent"
  514. app:layout_constraintTop_toTopOf="parent"
  515. tools:text="1/12" />
  516. </com.xkl.cdl.widget.MyRankingView>
  517. <com.xkl.cdl.widget.MyRankingView
  518. android:id="@+id/ranking_3"
  519. android:layout_width="80dp"
  520. android:layout_height="80dp"
  521. android:gravity="center"
  522. android:orientation="vertical"
  523. app:backgroundColor="@color/translation"
  524. app:borderWidth="4dp"
  525. app:normalColor="@color/gray_1"
  526. app:progressColor="#8757E6"
  527. tools:progressNumber="20"
  528. app:layout_constraintTop_toTopOf="parent"
  529. app:layout_constraintStart_toEndOf="@+id/ranking_2"
  530. app:layout_constraintBottom_toBottomOf="parent"
  531. app:layout_constraintEnd_toEndOf="parent">
  532. <TextView
  533. android:id="@+id/tv_ranking_3_flag"
  534. android:layout_width="wrap_content"
  535. android:layout_height="wrap_content"
  536. android:textColor="@color/gray_2"
  537. android:textSize="11dp"
  538. app:layout_constraintStart_toStartOf="parent"
  539. app:layout_constraintTop_toTopOf="parent"
  540. android:text="已学课堂练习" />
  541. <TextView
  542. android:id="@+id/tv_ranking_3_value"
  543. android:layout_width="wrap_content"
  544. android:layout_height="wrap_content"
  545. android:gravity="center"
  546. android:textColor="@color/main_text_color"
  547. android:textSize="11dp"
  548. app:layout_constraintStart_toStartOf="parent"
  549. app:layout_constraintTop_toTopOf="parent"
  550. tools:text="1/12" />
  551. </com.xkl.cdl.widget.MyRankingView>
  552. </androidx.constraintlayout.widget.ConstraintLayout>
  553. </androidx.constraintlayout.widget.ConstraintLayout>
  554. <!--章节学习情况-->
  555. <androidx.constraintlayout.widget.ConstraintLayout
  556. android:id="@+id/layout_chapter_info"
  557. android:layout_width="0dp"
  558. android:layout_height="match_parent"
  559. android:layout_marginTop="12dp"
  560. android:background="@drawable/shape_rounder_12_white"
  561. android:padding="12dp"
  562. app:layout_constraintEnd_toEndOf="parent"
  563. app:layout_constraintStart_toStartOf="parent"
  564. app:layout_constraintTop_toBottomOf="@+id/layout_course_progress">
  565. <TextView
  566. android:id="@+id/tv_chapter_info_flag"
  567. android:layout_width="wrap_content"
  568. android:layout_height="wrap_content"
  569. android:text="章节学习情况"
  570. android:textColor="@color/main_text_color"
  571. android:textSize="@dimen/bigSize"
  572. android:textStyle="bold"
  573. app:layout_constraintStart_toStartOf="parent"
  574. app:layout_constraintTop_toTopOf="parent" />
  575. <com.google.android.material.button.MaterialButton
  576. android:id="@+id/tv_chapter_choose"
  577. style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
  578. android:layout_width="wrap_content"
  579. android:layout_height="24dp"
  580. android:drawableEnd="@drawable/ic_down"
  581. android:gravity="center"
  582. android:insetTop="0dp"
  583. android:insetBottom="0dp"
  584. android:minWidth="124dp"
  585. tools:text="第一章"
  586. android:textColor="@color/main_text_color"
  587. android:textSize="@dimen/smallerSize"
  588. app:layout_constraintBottom_toBottomOf="@+id/tv_chapter_info_flag"
  589. app:layout_constraintEnd_toEndOf="parent"
  590. app:layout_constraintTop_toTopOf="@+id/tv_chapter_info_flag"
  591. app:strokeColor="@color/gray_1"
  592. app:strokeWidth="@dimen/line_height"
  593. app:cornerRadius="4dp"/>
  594. <androidx.recyclerview.widget.RecyclerView
  595. android:id="@+id/rv_chapter_info"
  596. android:layout_width="0dp"
  597. android:layout_height="match_parent"
  598. app:layout_constraintStart_toStartOf="parent"
  599. app:layout_constraintEnd_toEndOf="parent"
  600. app:layout_constraintTop_toBottomOf="@+id/tv_chapter_info_flag"
  601. android:layout_marginTop="6dp"/>
  602. </androidx.constraintlayout.widget.ConstraintLayout>
  603. </androidx.constraintlayout.widget.ConstraintLayout>
  604. </androidx.core.widget.NestedScrollView>
  605. </androidx.appcompat.widget.LinearLayoutCompat>
  606. </layout>