|
@@ -9,7 +9,6 @@
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:adjustViewBounds="true"
|
|
|
- android:scaleType="fitXY"
|
|
|
android:src="@drawable/bg_sparring_course_header"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
@@ -39,7 +38,7 @@
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:background="@drawable/bg_white_10dp"
|
|
|
- android:paddingBottom="20dp">
|
|
|
+ android:paddingBottom="12dp">
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/iv_time_icon"
|
|
@@ -84,12 +83,12 @@
|
|
|
android:background="@color/color_f2f2f2"
|
|
|
app:layout_constraintTop_toBottomOf="@+id/iv_time_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_marginStart="11dp"
|
|
|
- android:layout_marginTop="17dp"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
app:layout_constraintTop_toBottomOf="@+id/view_line"
|
|
@@ -97,41 +96,81 @@
|
|
|
|
|
|
<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:textSize="@dimen/sp_15"
|
|
|
android:textStyle="bold"
|
|
|
- app:layout_constraintBottom_toTopOf="@+id/tv_course_name"
|
|
|
+ app:layout_constraintHorizontal_bias="0"
|
|
|
+ app:layout_constraintWidth_default="wrap"
|
|
|
+ app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/tv_name"
|
|
|
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="张豆豆张豆豆张豆张张" />
|
|
|
+ tools:text="张豆豆张张张" />
|
|
|
|
|
|
<ImageView
|
|
|
+ tools:visibility="visible"
|
|
|
+ android:visibility="gone"
|
|
|
+ android:layout_marginStart="5dp"
|
|
|
+ android:id="@+id/iv_attendance_status"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/tv_title"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_title"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_title"
|
|
|
+ android:src="@drawable/icon_course_attendance_truancy"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_marginEnd="12dp"
|
|
|
+ android:adjustViewBounds="true"
|
|
|
+ android:layout_height="17.1dp"/>
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:visibility="gone"
|
|
|
android:paddingStart="5dp"
|
|
|
android:id="@+id/iv_go_chat"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="5dp"
|
|
|
android:src="@drawable/icon_chat_small"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/tv_title"
|
|
|
app:layout_constraintLeft_toRightOf="@+id/tv_title"
|
|
|
app:layout_constraintTop_toTopOf="@+id/tv_title" />
|
|
|
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ tools:text="小张小张小张小张小张小张小张小张小张小张小张小张小张小张"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:id="@+id/tv_name"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:maxLines="1"
|
|
|
+ android:ellipsize="end"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/tv_course_name"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_avatar"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/tv_title"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_title"
|
|
|
+ android:textColor="@color/color_999999"
|
|
|
+ android:textSize="@dimen/sp_13"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
+ app:layout_constraintHorizontal_bias="0"
|
|
|
+ app:layout_constraintWidth_default="wrap"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+
|
|
|
<TextView
|
|
|
android:id="@+id/tv_course_name"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="8dp"
|
|
|
android:background="@drawable/shape_couse_type_text_bg"
|
|
|
android:gravity="center"
|
|
|
+ android:layout_marginEnd="12dp"
|
|
|
+ android:layout_marginStart="4dp"
|
|
|
android:includeFontPadding="false"
|
|
|
android:paddingStart="4dp"
|
|
|
android:paddingTop="1.5dp"
|
|
@@ -139,9 +178,10 @@
|
|
|
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_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_name"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_name"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/tv_name"
|
|
|
tools:text="单簧管" />
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@@ -169,7 +209,7 @@
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:includeFontPadding="false"
|
|
|
- android:paddingStart="5dp"
|
|
|
+ android:paddingStart="6dp"
|
|
|
android:text="老师评价"
|
|
|
android:textColor="@color/color_1a1a1a"
|
|
|
android:textSize="@dimen/sp_13"
|
|
@@ -206,12 +246,14 @@
|
|
|
app:layout_constraintTop_toBottomOf="@+id/view_title_line">
|
|
|
|
|
|
<TextView
|
|
|
+ android:layout_marginEnd="20dp"
|
|
|
+ android:layout_marginStart="20dp"
|
|
|
android:id="@+id/tv_teacher_appraisal_empty_text"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_gravity="center"
|
|
|
android:drawableLeft="@drawable/icon_teacher_appraisal_empty"
|
|
|
- android:drawablePadding="8dp"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
android:gravity="center_vertical"
|
|
|
android:text="课程结束之后记得对学员的\n表现进行评价哦!"
|
|
|
android:textColor="@color/color_999999"
|
|
@@ -288,11 +330,13 @@
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_stu_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_stu_comment_empty"
|
|
|
- android:drawablePadding="8dp"
|
|
|
android:gravity="center_vertical"
|
|
|
android:text="学员尚未对您进行评价"
|
|
|
android:textColor="@color/color_999999"
|
|
@@ -370,11 +414,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"
|
|
@@ -436,11 +482,13 @@
|
|
|
|
|
|
<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"
|
|
@@ -518,11 +566,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"
|