|
@@ -6,6 +6,14 @@
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
|
+ <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" />
|
|
|
+
|
|
|
<include
|
|
|
android:id="@+id/toolbar_include"
|
|
|
layout="@layout/common_toolbar_layout" />
|
|
@@ -28,100 +36,118 @@
|
|
|
android:paddingBottom="12dp">
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:id="@+id/cs_top_info"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:background="@drawable/bg_white_10dp"
|
|
|
- android:paddingBottom="20dp">
|
|
|
+ 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_time_icon"
|
|
|
+ android:id="@+id/iv_clock_icon"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="11dp"
|
|
|
- android:layout_marginTop="12dp"
|
|
|
+ android:layout_marginTop="15dp"
|
|
|
android:src="@drawable/icon_clock"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
<TextView
|
|
|
- android:id="@+id/tv_course_time"
|
|
|
+ android:id="@+id/tv_time"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="6dp"
|
|
|
android:includeFontPadding="false"
|
|
|
- android:paddingStart="7dp"
|
|
|
android:textColor="@color/color_666666"
|
|
|
android:textSize="@dimen/sp_13"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/iv_time_icon"
|
|
|
- app:layout_constraintLeft_toRightOf="@+id/iv_time_icon"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/iv_time_icon"
|
|
|
+ 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" />
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_course_status"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginEnd="11dp"
|
|
|
- android:text="已结束"
|
|
|
- android:textColor="@color/color_999999"
|
|
|
- android:textSize="@dimen/sp_14"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/iv_time_icon"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/iv_time_icon" />
|
|
|
-
|
|
|
<View
|
|
|
android:id="@+id/view_line"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="1px"
|
|
|
- android:layout_marginTop="10dp"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:layout_marginTop="15dp"
|
|
|
android:background="@color/color_f2f2f2"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/iv_time_icon" />
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/iv_clock_icon" />
|
|
|
|
|
|
- <com.cooleshow.base.widgets.QMUIRadiusImageView
|
|
|
+ <de.hdodenhof.circleimageview.CircleImageView
|
|
|
android:id="@+id/iv_avatar"
|
|
|
- android:layout_width="54dp"
|
|
|
- android:layout_height="54dp"
|
|
|
+ android:layout_width="40dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
android:src="@drawable/icon_piano_room_course"
|
|
|
- android:layout_marginStart="11dp"
|
|
|
- android:layout_marginTop="17dp"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/view_line" />
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/view_line"
|
|
|
+ app:qmui_corner_radius="5dp" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_title"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="10dp"
|
|
|
- android:layout_marginEnd="10dp"
|
|
|
android:ellipsize="end"
|
|
|
android:includeFontPadding="false"
|
|
|
- android:maxLines="2"
|
|
|
+ android:maxLines="1"
|
|
|
android:textColor="@color/color_1a1a1a"
|
|
|
- android:textSize="@dimen/sp_16"
|
|
|
- android:textStyle="bold"
|
|
|
- app:layout_constraintBottom_toTopOf="@+id/tv_course_name"
|
|
|
+ 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_go_chat"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/iv_attendance_status"
|
|
|
app:layout_constraintTop_toTopOf="@+id/iv_avatar"
|
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
|
- tools:text="张豆豆张豆豆张豆豆张豆" />
|
|
|
-
|
|
|
+ app:layout_constraintWidth_default="wrap"
|
|
|
+ tools:text="VIP定制课-张豆豆VIP定制课-张豆豆" />
|
|
|
|
|
|
<ImageView
|
|
|
- android:id="@+id/iv_go_chat"
|
|
|
+ android:id="@+id/iv_attendance_status"
|
|
|
android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="8dp"
|
|
|
- android:src="@drawable/icon_chat_small"
|
|
|
+ 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_marginTop="8dp"
|
|
|
+ android:layout_marginStart="5dp"
|
|
|
+ android:layout_marginEnd="5dp"
|
|
|
android:background="@drawable/shape_couse_type_text_bg"
|
|
|
android:gravity="center"
|
|
|
android:includeFontPadding="false"
|
|
@@ -131,11 +157,25 @@
|
|
|
android:paddingBottom="1.5dp"
|
|
|
android:textColor="@color/color_ff8c00"
|
|
|
android:textSize="@dimen/sp_10"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/iv_avatar"
|
|
|
- app:layout_constraintLeft_toLeftOf="@+id/tv_title"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/tv_title"
|
|
|
+ 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>
|
|
|
|
|
|
|
|
@@ -199,11 +239,13 @@
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_homework_empty_text"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ 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:drawablePadding="8dp"
|
|
|
android:gravity="center_vertical"
|
|
|
android:text="老师尚未布置作业"
|
|
|
android:textColor="@color/color_999999"
|
|
@@ -265,6 +307,7 @@
|
|
|
android:textColor="@color/color_2dc7aa"
|
|
|
android:textSize="@dimen/sp_14"
|
|
|
android:visibility="gone"
|
|
|
+ tools:visibility="visible"
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/view_title_line_homework_video"
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
app:layout_constraintTop_toTopOf="@+id/view_title_line_homework_video" />
|
|
@@ -284,25 +327,31 @@
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_homework_video_empty_text"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ 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: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:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center_vertical"
|
|
|
- android:orientation="horizontal"
|
|
|
- android:weightSum="3"
|
|
|
- tools:text="每个音的指法比较熟练,但是遇到指法变换比较频繁的小节熟练度不足,建议平时可以选择指法变换较大的曲目多加练习!" />
|
|
|
</FrameLayout>
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/rv_video"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/dp_7"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:layout_marginRight="@dimen/dp_7"
|
|
|
+ android:visibility="gone"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/view_title_line_homework_video" />
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
@@ -366,11 +415,13 @@
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_homework_comment_empty_text"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ 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:drawablePadding="8dp"
|
|
|
android:gravity="center_vertical"
|
|
|
android:text="课程结束后上传视频会得到老师点评哦~"
|
|
|
android:textColor="@color/color_999999"
|