|
@@ -1,5 +1,5 @@
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
|
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
@@ -8,344 +8,431 @@
|
|
android:orientation="vertical"
|
|
android:orientation="vertical"
|
|
tools:ignore="MissingDefaultResource">
|
|
tools:ignore="MissingDefaultResource">
|
|
|
|
|
|
|
|
+ <ImageView
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:adjustViewBounds="true"
|
|
|
|
+ android:src="@drawable/bg_appointment_top"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
+
|
|
<com.cooleshow.base.widgets.ComTitleBar
|
|
<com.cooleshow.base.widgets.ComTitleBar
|
|
android:id="@+id/title_view"
|
|
android:id="@+id/title_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
app:title_text="布置作业" />
|
|
app:title_text="布置作业" />
|
|
|
|
|
|
- <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:layout_marginLeft="14dp"
|
|
|
|
- android:layout_marginTop="12dp"
|
|
|
|
- android:layout_marginRight="14dp"
|
|
|
|
- android:background="@drawable/bg_white_10dp">
|
|
|
|
-
|
|
|
|
- <ImageView
|
|
|
|
- android:id="@+id/im_clock"
|
|
|
|
- android:layout_width="@dimen/dp_16"
|
|
|
|
- android:layout_height="@dimen/dp_16"
|
|
|
|
- android:layout_marginLeft="11dp"
|
|
|
|
- android:layout_marginTop="@dimen/dp_12"
|
|
|
|
- android:background="@drawable/icon_clock"
|
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
-
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/tv_date"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:layout_marginLeft="7dp"
|
|
|
|
- android:textColor="@color/color_666666"
|
|
|
|
- android:textSize="@dimen/sp_13"
|
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/im_clock"
|
|
|
|
- app:layout_constraintLeft_toRightOf="@+id/im_clock"
|
|
|
|
- app:layout_constraintTop_toTopOf="@+id/im_clock" />
|
|
|
|
-
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/tv_state"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:layout_marginRight="11dp"
|
|
|
|
- android:text="已结束"
|
|
|
|
- android:textColor="@color/color_999999"
|
|
|
|
- android:textSize="@dimen/sp_14"
|
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/im_clock"
|
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
|
- app:layout_constraintTop_toTopOf="@+id/im_clock" />
|
|
|
|
-
|
|
|
|
- <View
|
|
|
|
- android:id="@+id/view_line"
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
- android:layout_height="1dp"
|
|
|
|
- android:layout_marginLeft="10dp"
|
|
|
|
- android:layout_marginTop="10dp"
|
|
|
|
- android:layout_marginRight="9dp"
|
|
|
|
- android:background="@color/color_f2f2f2"
|
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/im_clock" />
|
|
|
|
-
|
|
|
|
- <com.cooleshow.base.widgets.QMUIRadiusImageView
|
|
|
|
- android:id="@+id/im_header"
|
|
|
|
- android:layout_width="@dimen/dp_47"
|
|
|
|
- android:layout_height="@dimen/dp_51"
|
|
|
|
- android:layout_marginLeft="11dp"
|
|
|
|
- android:layout_marginTop="17dp"
|
|
|
|
- android:layout_marginBottom="20dp"
|
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/view_line"
|
|
|
|
- app:qmui_corner_radius="5dp" />
|
|
|
|
-
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/tv_name"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:layout_marginLeft="10dp"
|
|
|
|
- android:textColor="@color/color_1a1a1a"
|
|
|
|
- android:textSize="@dimen/sp_16"
|
|
|
|
- app:layout_constraintLeft_toRightOf="@+id/im_header"
|
|
|
|
- app:layout_constraintTop_toTopOf="@+id/im_header" />
|
|
|
|
-
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/tv_course_name"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:layout_marginTop="@dimen/dp_11"
|
|
|
|
- android:background="@drawable/shape_couse_type_text_bg"
|
|
|
|
- android:gravity="center"
|
|
|
|
- android:includeFontPadding="false"
|
|
|
|
- android:paddingStart="4dp"
|
|
|
|
- android:paddingTop="1.5dp"
|
|
|
|
- android:paddingEnd="4dp"
|
|
|
|
- android:paddingBottom="1.5dp"
|
|
|
|
- android:textColor="@color/color_ff8c00"
|
|
|
|
- android:textSize="@dimen/sp_10"
|
|
|
|
- app:layout_constraintLeft_toLeftOf="@+id/tv_name"
|
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/tv_name"
|
|
|
|
- tools:text="单簧管" />
|
|
|
|
- </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
-
|
|
|
|
- <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
|
+ <androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:layout_marginLeft="14dp"
|
|
|
|
- android:layout_marginTop="12dp"
|
|
|
|
- android:layout_marginRight="14dp"
|
|
|
|
- android:background="@drawable/bg_white_10dp"
|
|
|
|
- android:paddingBottom="10dp">
|
|
|
|
-
|
|
|
|
- <View
|
|
|
|
- android:id="@+id/view_title_line_homework"
|
|
|
|
- android:layout_width="4dp"
|
|
|
|
- android:layout_height="14dp"
|
|
|
|
- android:layout_marginStart="12dp"
|
|
|
|
- android:layout_marginTop="13dp"
|
|
|
|
- android:background="@drawable/shape_course_title_tag_bg"
|
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
-
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/tv_homework_title"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:includeFontPadding="false"
|
|
|
|
- android:paddingStart="5dp"
|
|
|
|
- android:text="课后作业"
|
|
|
|
- android:textColor="@color/color_1a1a1a"
|
|
|
|
- android:textSize="@dimen/sp_13"
|
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/view_title_line_homework"
|
|
|
|
- app:layout_constraintLeft_toRightOf="@+id/view_title_line_homework"
|
|
|
|
- app:layout_constraintTop_toTopOf="@+id/view_title_line_homework" />
|
|
|
|
-
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/tv_set_homework"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:drawableLeft="@drawable/icon_set_homework"
|
|
|
|
- android:drawablePadding="3dp"
|
|
|
|
- android:includeFontPadding="false"
|
|
|
|
- android:paddingEnd="11dp"
|
|
|
|
- android:text="@string/set_homework_str"
|
|
|
|
- android:textColor="@color/color_2dc7aa"
|
|
|
|
- android:textSize="@dimen/sp_14"
|
|
|
|
- android:visibility="visible"
|
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/view_title_line_homework"
|
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
|
- app:layout_constraintTop_toTopOf="@+id/view_title_line_homework" />
|
|
|
|
-
|
|
|
|
- <FrameLayout
|
|
|
|
- android:id="@+id/view_homework_content_bg"
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:layout_marginStart="11dp"
|
|
|
|
- android:layout_marginTop="11dp"
|
|
|
|
- android:layout_marginEnd="11dp"
|
|
|
|
- android:background="@drawable/shape_bg_f7f8f9_4dp"
|
|
|
|
- android:minHeight="88dp"
|
|
|
|
- android:padding="11dp"
|
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/view_title_line_homework">
|
|
|
|
-
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/tv_homework_empty_text"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:layout_gravity="center"
|
|
|
|
- android:drawableLeft="@drawable/icon_homework_empty"
|
|
|
|
- android:drawablePadding="8dp"
|
|
|
|
- android:gravity="center_vertical"
|
|
|
|
- android:text="课程结束之后记得布置作业哦!"
|
|
|
|
- android:textColor="@color/color_999999"
|
|
|
|
- android:textSize="@dimen/sp_13" />
|
|
|
|
-
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/tv_homework_content"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:includeFontPadding="false"
|
|
|
|
- android:textColor="@color/color_333333"
|
|
|
|
- android:textSize="@dimen/sp_13"
|
|
|
|
- android:visibility="gone"
|
|
|
|
- tools:text="每个音的指法比较熟练,但是遇到指法变换比较频繁的小节熟练度不足,建议平时可以选择指法变换较大的曲目多加练习!" />
|
|
|
|
- </FrameLayout>
|
|
|
|
- </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
+ android:layout_height="0dp"
|
|
|
|
+ android:overScrollMode="never"
|
|
|
|
+ android:scrollbars="none"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/title_view">
|
|
|
|
|
|
- <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
- android:id="@+id/home_word_video_view"
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:layout_marginLeft="14dp"
|
|
|
|
- android:layout_marginTop="12dp"
|
|
|
|
- android:layout_marginRight="14dp"
|
|
|
|
- android:background="@drawable/bg_white_10dp"
|
|
|
|
- android:paddingBottom="10dp"
|
|
|
|
- android:visibility="gone">
|
|
|
|
-
|
|
|
|
- <View
|
|
|
|
- android:id="@+id/view_video_work_line"
|
|
|
|
- android:layout_width="4dp"
|
|
|
|
- android:layout_height="14dp"
|
|
|
|
- android:layout_marginStart="12dp"
|
|
|
|
- android:layout_marginTop="13dp"
|
|
|
|
- android:background="@drawable/shape_course_title_tag_bg"
|
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
-
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/tv_video_work_title"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:includeFontPadding="false"
|
|
|
|
- android:paddingStart="5dp"
|
|
|
|
- android:text="视频作业"
|
|
|
|
- android:textColor="@color/color_1a1a1a"
|
|
|
|
- android:textSize="@dimen/sp_13"
|
|
|
|
- android:textStyle="bold"
|
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/view_video_work_line"
|
|
|
|
- app:layout_constraintLeft_toRightOf="@+id/view_video_work_line"
|
|
|
|
- app:layout_constraintTop_toTopOf="@+id/view_video_work_line" />
|
|
|
|
-
|
|
|
|
- <FrameLayout
|
|
|
|
- android:id="@+id/view_homework_video_content_bg"
|
|
|
|
|
|
+ <LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
- android:layout_marginStart="11dp"
|
|
|
|
- android:layout_marginTop="11dp"
|
|
|
|
- android:layout_marginEnd="11dp"
|
|
|
|
- android:background="@drawable/shape_bg_f7f8f9_4dp"
|
|
|
|
- android:minHeight="88dp"
|
|
|
|
- android:padding="11dp"
|
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/view_video_work_line">
|
|
|
|
-
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/tv_homework_video_empty_text"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
|
+ android:orientation="vertical"
|
|
|
|
+ android:paddingStart="14dp"
|
|
|
|
+ android:paddingTop="12dp"
|
|
|
|
+ android:paddingEnd="14dp"
|
|
|
|
+ android:paddingBottom="12dp">
|
|
|
|
+
|
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
+ android:id="@+id/cs_top_info"
|
|
|
|
+ android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
- android:layout_gravity="center"
|
|
|
|
- android:drawableLeft="@drawable/icon_homework_video_empty"
|
|
|
|
- android:drawablePadding="8dp"
|
|
|
|
- android:gravity="center_vertical"
|
|
|
|
- android:text="学员尚未上传作业视频"
|
|
|
|
- android:textColor="@color/color_999999"
|
|
|
|
- android:textSize="@dimen/sp_13" />
|
|
|
|
-
|
|
|
|
- <LinearLayout
|
|
|
|
- android:id="@+id/ll_homework_video_content"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
|
+ android:background="@drawable/bg_white_10dp"
|
|
|
|
+ android:paddingStart="12dp"
|
|
|
|
+ android:paddingEnd="12dp"
|
|
|
|
+ android:paddingBottom="12dp"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/title_view">
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/iv_clock_icon"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="15dp"
|
|
|
|
+ android:src="@drawable/icon_clock"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_time"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginStart="6dp"
|
|
|
|
+ android:includeFontPadding="false"
|
|
|
|
+ android:textColor="@color/color_666666"
|
|
|
|
+ android:textSize="@dimen/sp_13"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_clock_icon"
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/iv_clock_icon"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_clock_icon"
|
|
|
|
+ tools:text="2021/09/17 14:00~14:25" />
|
|
|
|
+
|
|
|
|
+ <View
|
|
|
|
+ android:id="@+id/view_line"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="1dp"
|
|
|
|
+ android:layout_marginTop="15dp"
|
|
|
|
+ android:background="@color/color_f2f2f2"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/iv_clock_icon" />
|
|
|
|
+
|
|
|
|
+ <de.hdodenhof.circleimageview.CircleImageView
|
|
|
|
+ android:id="@+id/iv_avatar"
|
|
|
|
+ android:layout_width="40dp"
|
|
|
|
+ android:layout_height="40dp"
|
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
|
+ android:src="@drawable/icon_default_head"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/view_line"
|
|
|
|
+ app:qmui_corner_radius="5dp" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_title"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginStart="10dp"
|
|
|
|
+ android:ellipsize="end"
|
|
|
|
+ android:includeFontPadding="false"
|
|
|
|
+ android:maxLines="1"
|
|
|
|
+ android:textColor="@color/color_1a1a1a"
|
|
|
|
+ android:textSize="@dimen/sp_15"
|
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/tv_name"
|
|
|
|
+ app:layout_constraintHorizontal_bias="0"
|
|
|
|
+ app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/iv_avatar"
|
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/iv_attendance_status"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_avatar"
|
|
|
|
+ app:layout_constraintVertical_chainStyle="packed"
|
|
|
|
+ app:layout_constraintWidth_default="wrap"
|
|
|
|
+ tools:text="VIP定制课-张豆豆VIP定制课-张豆豆" />
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/iv_attendance_status"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="17.1dp"
|
|
|
|
+ android:layout_marginStart="5dp"
|
|
|
|
+ android:layout_marginEnd="5dp"
|
|
|
|
+ android:adjustViewBounds="true"
|
|
|
|
+ android:src="@drawable/icon_course_attendance_truancy"
|
|
|
|
+ android:visibility="gone"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_title"
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/tv_title"
|
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_title" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_name"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="4dp"
|
|
|
|
+ android:ellipsize="middle"
|
|
|
|
+ android:includeFontPadding="false"
|
|
|
|
+ android:singleLine="true"
|
|
|
|
+ android:textColor="@color/color_999999"
|
|
|
|
+ android:textSize="@dimen/sp_13"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_avatar"
|
|
|
|
+ app:layout_constraintHorizontal_bias="0"
|
|
|
|
+ app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/tv_title"
|
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/tv_course_name"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_title"
|
|
|
|
+ app:layout_constraintWidth_default="wrap"
|
|
|
|
+ tools:text="张豆豆张豆豆张豆豆张豆豆张豆豆张豆豆张豆豆张豆豆张豆豆张豆豆张豆豆张豆豆" />
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_course_name"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginStart="5dp"
|
|
|
|
+ android:layout_marginEnd="5dp"
|
|
|
|
+ android:background="@drawable/shape_couse_type_text_bg"
|
|
|
|
+ android:gravity="center"
|
|
|
|
+ android:includeFontPadding="false"
|
|
|
|
+ android:paddingStart="4dp"
|
|
|
|
+ android:paddingTop="1.5dp"
|
|
|
|
+ android:paddingEnd="4dp"
|
|
|
|
+ android:paddingBottom="1.5dp"
|
|
|
|
+ android:textColor="@color/color_ff8c00"
|
|
|
|
+ android:textSize="@dimen/sp_10"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_name"
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/tv_name"
|
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_name"
|
|
|
|
+ tools:text="单簧管" />
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_course_status"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:textColor="@color/color_999999"
|
|
|
|
+ android:textSize="@dimen/sp_14"
|
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/view_line"
|
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
+ tools:text="未开始" />
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
+
|
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
+ android:id="@+id/cs_homework"
|
|
|
|
+ android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
- android:layout_gravity="center_vertical"
|
|
|
|
- android:orientation="horizontal"
|
|
|
|
- android:weightSum="3"
|
|
|
|
- tools:text="每个音的指法比较熟练,但是遇到指法变换比较频繁的小节熟练度不足,建议平时可以选择指法变换较大的曲目多加练习!" />
|
|
|
|
- </FrameLayout>
|
|
|
|
-
|
|
|
|
- </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
-
|
|
|
|
- <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
- android:id="@+id/comment_view"
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:layout_marginStart="@dimen/dp_14"
|
|
|
|
- android:layout_marginTop="12dp"
|
|
|
|
- android:layout_marginEnd="@dimen/dp_14"
|
|
|
|
- android:background="@drawable/bg_white_10dp"
|
|
|
|
- android:paddingBottom="10dp"
|
|
|
|
- android:visibility="gone">
|
|
|
|
-
|
|
|
|
- <View
|
|
|
|
- android:id="@+id/view_title_line_homework_comment"
|
|
|
|
- android:layout_width="4dp"
|
|
|
|
- android:layout_height="14dp"
|
|
|
|
- android:layout_marginStart="12dp"
|
|
|
|
- android:layout_marginTop="13dp"
|
|
|
|
- android:background="@drawable/shape_course_title_tag_bg"
|
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
-
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/tv_homework_comment_title"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:includeFontPadding="false"
|
|
|
|
- android:paddingStart="5dp"
|
|
|
|
- android:text="作业点评"
|
|
|
|
- android:textColor="@color/color_1a1a1a"
|
|
|
|
- android:textSize="@dimen/sp_13"
|
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/view_title_line_homework_comment"
|
|
|
|
- app:layout_constraintLeft_toRightOf="@+id/view_title_line_homework_comment"
|
|
|
|
- app:layout_constraintTop_toTopOf="@+id/view_title_line_homework_comment" />
|
|
|
|
-
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/tv_homework_set_comment"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:drawableLeft="@drawable/icon_edit_appraisal"
|
|
|
|
- android:drawablePadding="3dp"
|
|
|
|
- android:includeFontPadding="false"
|
|
|
|
- android:paddingEnd="11dp"
|
|
|
|
- android:text="@string/comment_str"
|
|
|
|
- android:textColor="@color/color_2dc7aa"
|
|
|
|
- android:textSize="@dimen/sp_14"
|
|
|
|
- android:visibility="visible"
|
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/view_title_line_homework_comment"
|
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
|
- app:layout_constraintTop_toTopOf="@+id/view_title_line_homework_comment" />
|
|
|
|
-
|
|
|
|
- <FrameLayout
|
|
|
|
- android:id="@+id/view_homework_comment_content_bg"
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:layout_marginStart="11dp"
|
|
|
|
- android:layout_marginTop="11dp"
|
|
|
|
- android:layout_marginEnd="11dp"
|
|
|
|
- android:background="@drawable/shape_bg_f7f8f9_4dp"
|
|
|
|
- android:minHeight="88dp"
|
|
|
|
- android:padding="11dp"
|
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/view_title_line_homework_comment">
|
|
|
|
-
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/tv_homework_comment_empty_text"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
|
+ android:background="@drawable/bg_white_10dp"
|
|
|
|
+ android:paddingBottom="10dp"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/cs_top_info">
|
|
|
|
+
|
|
|
|
+ <View
|
|
|
|
+ android:id="@+id/view_title_line_homework"
|
|
|
|
+ android:layout_width="4dp"
|
|
|
|
+ android:layout_height="14dp"
|
|
|
|
+ android:layout_marginStart="12dp"
|
|
|
|
+ android:layout_marginTop="13dp"
|
|
|
|
+ android:background="@drawable/shape_course_title_tag_bg"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_homework_title"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:includeFontPadding="false"
|
|
|
|
+ android:paddingStart="5dp"
|
|
|
|
+ android:text="课后作业"
|
|
|
|
+ android:textColor="@color/color_1a1a1a"
|
|
|
|
+ android:textSize="@dimen/sp_13"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/view_title_line_homework"
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/view_title_line_homework"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/view_title_line_homework" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_set_homework"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:drawableLeft="@drawable/icon_set_homework"
|
|
|
|
+ android:drawablePadding="3dp"
|
|
|
|
+ android:includeFontPadding="false"
|
|
|
|
+ android:paddingEnd="11dp"
|
|
|
|
+ android:text="@string/set_homework_str"
|
|
|
|
+ android:textColor="@color/color_2dc7aa"
|
|
|
|
+ android:textSize="@dimen/sp_14"
|
|
|
|
+ android:visibility="gone"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/view_title_line_homework"
|
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/view_title_line_homework" />
|
|
|
|
+
|
|
|
|
+ <FrameLayout
|
|
|
|
+ android:id="@+id/view_homework_content_bg"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginStart="11dp"
|
|
|
|
+ android:layout_marginTop="11dp"
|
|
|
|
+ android:layout_marginEnd="11dp"
|
|
|
|
+ android:background="@drawable/shape_bg_f7f8f9_4dp"
|
|
|
|
+ android:minHeight="88dp"
|
|
|
|
+ android:padding="11dp"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/view_title_line_homework">
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_homework_empty_text"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_marginEnd="20dp"
|
|
|
|
+ android:layout_marginStart="20dp"
|
|
|
|
+ android:drawablePadding="10dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_gravity="center"
|
|
|
|
+ android:drawableLeft="@drawable/icon_homework_empty"
|
|
|
|
+ android:gravity="center_vertical"
|
|
|
|
+ android:text="@string/please_set_homework_tip"
|
|
|
|
+ android:textColor="@color/color_999999"
|
|
|
|
+ android:textSize="@dimen/sp_13" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_homework_content"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:includeFontPadding="false"
|
|
|
|
+ android:textColor="@color/color_333333"
|
|
|
|
+ android:textSize="@dimen/sp_13"
|
|
|
|
+ android:visibility="gone"
|
|
|
|
+ tools:text="每个音的指法比较熟练,但是遇到指法变换比较频繁的小节熟练度不足,建议平时可以选择指法变换较大的曲目多加练习!" />
|
|
|
|
+ </FrameLayout>
|
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
+
|
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
+ android:id="@+id/home_word_video_view"
|
|
|
|
+ android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
- android:layout_gravity="center"
|
|
|
|
- android:drawableLeft="@drawable/icon_homework_comment"
|
|
|
|
- android:drawablePadding="8dp"
|
|
|
|
- android:gravity="center_vertical"
|
|
|
|
- android:text="您尚未点评作业"
|
|
|
|
- android:textColor="@color/color_999999"
|
|
|
|
- android:textSize="@dimen/sp_13" />
|
|
|
|
-
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/tv_homework_comment_content"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
|
+ android:background="@drawable/bg_white_10dp"
|
|
|
|
+ android:paddingBottom="10dp"
|
|
|
|
+ android:visibility="gone"
|
|
|
|
+ tools:visibility="visible"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/cs_homework">
|
|
|
|
+
|
|
|
|
+ <View
|
|
|
|
+ android:id="@+id/view_video_work_line"
|
|
|
|
+ android:layout_width="4dp"
|
|
|
|
+ android:layout_height="14dp"
|
|
|
|
+ android:layout_marginStart="12dp"
|
|
|
|
+ android:layout_marginTop="13dp"
|
|
|
|
+ android:background="@drawable/shape_course_title_tag_bg"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_video_work_title"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:includeFontPadding="false"
|
|
|
|
+ android:paddingStart="5dp"
|
|
|
|
+ android:text="视频作业"
|
|
|
|
+ android:textColor="@color/color_1a1a1a"
|
|
|
|
+ android:textSize="@dimen/sp_13"
|
|
|
|
+ android:textStyle="bold"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/view_video_work_line"
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/view_video_work_line"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/view_video_work_line" />
|
|
|
|
+
|
|
|
|
+ <FrameLayout
|
|
|
|
+ android:id="@+id/view_homework_video_content_bg"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginStart="11dp"
|
|
|
|
+ android:layout_marginTop="11dp"
|
|
|
|
+ android:layout_marginEnd="11dp"
|
|
|
|
+ android:background="@drawable/shape_bg_f7f8f9_4dp"
|
|
|
|
+ android:minHeight="88dp"
|
|
|
|
+ android:padding="11dp"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/view_video_work_line">
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_homework_video_empty_text"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_marginEnd="20dp"
|
|
|
|
+ android:layout_marginStart="20dp"
|
|
|
|
+ android:drawablePadding="10dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_gravity="center"
|
|
|
|
+ android:drawableLeft="@drawable/icon_homework_video_empty"
|
|
|
|
+ android:gravity="center_vertical"
|
|
|
|
+ android:text="@string/student_not_upload_homework_tip"
|
|
|
|
+ android:textColor="@color/color_999999"
|
|
|
|
+ android:textSize="@dimen/sp_13" />
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:id="@+id/ll_homework_video_content"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
+ android:weightSum="3"
|
|
|
|
+ tools:text="每个音的指法比较熟练,但是遇到指法变换比较频繁的小节熟练度不足,建议平时可以选择指法变换较大的曲目多加练习!" />
|
|
|
|
+ </FrameLayout>
|
|
|
|
+
|
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
+
|
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
+ android:id="@+id/comment_view"
|
|
|
|
+ android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
- android:includeFontPadding="false"
|
|
|
|
- android:textColor="@color/color_333333"
|
|
|
|
- android:textSize="@dimen/sp_13"
|
|
|
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
|
+ android:background="@drawable/bg_white_10dp"
|
|
|
|
+ android:paddingBottom="10dp"
|
|
android:visibility="gone"
|
|
android:visibility="gone"
|
|
- tools:text="每个音的指法比较熟练,但是遇到指法变换比较频繁的小节熟练度不足,建议平时可以选择指法变换较大的曲目多加练习!" />
|
|
|
|
- </FrameLayout>
|
|
|
|
- </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-</LinearLayout>
|
|
|
|
|
|
+ tools:visibility="visible"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/home_word_video_view">
|
|
|
|
+
|
|
|
|
+ <View
|
|
|
|
+ android:id="@+id/view_title_line_homework_comment"
|
|
|
|
+ android:layout_width="4dp"
|
|
|
|
+ android:layout_height="14dp"
|
|
|
|
+ android:layout_marginStart="12dp"
|
|
|
|
+ android:layout_marginTop="13dp"
|
|
|
|
+ android:background="@drawable/shape_course_title_tag_bg"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_homework_comment_title"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:includeFontPadding="false"
|
|
|
|
+ android:paddingStart="5dp"
|
|
|
|
+ android:text="作业点评"
|
|
|
|
+ android:textColor="@color/color_1a1a1a"
|
|
|
|
+ android:textSize="@dimen/sp_13"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/view_title_line_homework_comment"
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/view_title_line_homework_comment"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/view_title_line_homework_comment" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_homework_set_comment"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:drawableLeft="@drawable/icon_edit_appraisal"
|
|
|
|
+ android:drawablePadding="3dp"
|
|
|
|
+ android:includeFontPadding="false"
|
|
|
|
+ android:paddingEnd="11dp"
|
|
|
|
+ android:text="点评作业"
|
|
|
|
+ android:textColor="@color/color_2dc7aa"
|
|
|
|
+ android:textSize="@dimen/sp_14"
|
|
|
|
+ android:visibility="visible"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/view_title_line_homework_comment"
|
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/view_title_line_homework_comment" />
|
|
|
|
+
|
|
|
|
+ <FrameLayout
|
|
|
|
+ android:id="@+id/view_homework_comment_content_bg"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginStart="11dp"
|
|
|
|
+ android:layout_marginTop="11dp"
|
|
|
|
+ android:layout_marginEnd="11dp"
|
|
|
|
+ android:background="@drawable/shape_bg_f7f8f9_4dp"
|
|
|
|
+ android:minHeight="88dp"
|
|
|
|
+ android:padding="11dp"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/view_title_line_homework_comment">
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_homework_comment_empty_text"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_marginEnd="20dp"
|
|
|
|
+ android:layout_marginStart="20dp"
|
|
|
|
+ android:drawablePadding="10dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_gravity="center"
|
|
|
|
+ android:drawableLeft="@drawable/icon_homework_comment"
|
|
|
|
+ android:gravity="center_vertical"
|
|
|
|
+ android:text="您尚未点评作业"
|
|
|
|
+ android:textColor="@color/color_999999"
|
|
|
|
+ android:textSize="@dimen/sp_13" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_homework_comment_content"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:includeFontPadding="false"
|
|
|
|
+ android:textColor="@color/color_333333"
|
|
|
|
+ android:textSize="@dimen/sp_13"
|
|
|
|
+ android:visibility="gone"
|
|
|
|
+ tools:text="每个音的指法比较熟练,但是遇到指法变换比较频繁的小节熟练度不足,建议平时可以选择指法变换较大的曲目多加练习!" />
|
|
|
|
+ </FrameLayout>
|
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
+ </LinearLayout>
|
|
|
|
+ </androidx.core.widget.NestedScrollView>
|
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|