소스 검색

修改老师端我的直播课列表页面

Pq 3 년 전
부모
커밋
8d0eb51d05

+ 1 - 1
BaseLibrary/src/main/java/com/cooleshow/base/utils/UiUtils.java

@@ -255,7 +255,7 @@ public class UiUtils {
         } catch (Exception e) {
             e.printStackTrace();
         }
-        return price + "/" + lessonCount + "课时";
+        return price ;
     }
 
     public static String getLiveCoursePriceTextForStu(String lessonPrice) {

BIN
BaseLibrary/src/main/res/drawable-xhdpi/icon_arrow_right_small_orange.png


BIN
BaseLibrary/src/main/res/drawable-xxhdpi/icon_arrow_right_small_orange.png


+ 5 - 0
BaseLibrary/src/main/res/values/colors.xml

@@ -132,6 +132,11 @@
     <color name="color_ff7938">#ff7938</color>
     <color name="color_e8fffb">#e8fffb</color>
     <color name="color_008ae0">#008AE0</color>
+    <color name="color_ffeee3">#ffeee3</color>
+    <color name="color_d5fff7">#D5FFF7</color>
+    <color name="color_ff1919">#FF1919</color>
+    <color name="color_ffe7e7">#FFE7E7</color>
+    <color name="color_def2ff">#DEF2FF</color>
 
     <color name="color_25292e">#25292E</color>
     <color name="color_F8F8F8">#F8F8F8</color>

+ 63 - 7
teacher/src/main/java/com/cooleshow/teacher/adapter/MineLiveCourseAdapter.java

@@ -1,6 +1,7 @@
 package com.cooleshow.teacher.adapter;
 
 import android.text.TextUtils;
+import android.view.View;
 import android.widget.ImageView;
 import android.widget.TextView;
 
@@ -15,6 +16,7 @@ import com.cooleshow.base.utils.TimeUtils;
 import com.cooleshow.base.utils.UiUtils;
 import com.cooleshow.teacher.R;
 import com.cooleshow.teacher.bean.MineLiveCourseListBean;
+import com.cooleshow.teacher.ui.course.MineLiveCourseActivity;
 
 import java.util.List;
 
@@ -25,9 +27,11 @@ import java.util.List;
  * 类说明:
  */
 public class MineLiveCourseAdapter extends BaseQuickAdapter<MineLiveCourseListBean.RowsBean, BaseViewHolder> implements LoadMoreModule {
+    private String type;
 
-    public MineLiveCourseAdapter() {
+    public MineLiveCourseAdapter(String type) {
         super(R.layout.layout_mine_live_course_item);
+        this.type = type;
     }
 
 
@@ -36,21 +40,73 @@ public class MineLiveCourseAdapter extends BaseQuickAdapter<MineLiveCourseListBe
         if (item == null) {
             return;
         }
+        //课程封面
         ImageView im_pic = helper.getView(R.id.im_pic);
         GlideUtils.INSTANCE.loadImage(getContext(), item.backgroundPic, im_pic);
-        TextView tv_subject_name = helper.getView(R.id.tv_subject_name);
-        tv_subject_name.setText(item.courseGroupName);
-        ImageView im_header = helper.getView(R.id.im_header);
-        GlideUtils.INSTANCE.loadImage(getContext(), item.avatar, im_header, R.drawable.icon_teacher_default_head);
-        TextView tv_teacher_name = helper.getView(R.id.tv_teacher_name);
-        tv_teacher_name.setText(item.teacherName);
+        //课程组名称
+        TextView tv_course_name = helper.getView(R.id.tv_course_name);
+        tv_course_name.setText(item.courseGroupName);
+        //学生购买人数
         TextView tv_student_count = helper.getView(R.id.tv_student_count);
         tv_student_count.setText(UiUtils.getBuyNumTip(item.coursePrice, item.studentCount));
+        if (TextUtils.equals(type, MineLiveCourseActivity.TYPE_NOT_SALE)) {
+            tv_student_count.setVisibility(View.GONE);
+        } else {
+            tv_student_count.setVisibility(View.VISIBLE);
+        }
+        //课程时间
         TextView tv_date = helper.getView(R.id.tv_date);
         tv_date.setText(TextUtils.isEmpty(item.courseStartTime) ? "" : TimeUtils.date2String(TimeUtils.string2Date(item.courseStartTime), "yyyy-MM-dd HH:mm"));
+        //课程价格
         TextView tv_price = helper.getView(R.id.tv_price);
         tv_price.setText(UiUtils.getLiveCoursePriceText(item.coursePrice, item.courseNum));
+        TextView tv_price_unit = helper.getView(R.id.tv_price_unit);
+        tv_price_unit.setText(String.format("/%d课时", item.courseNum));
+        //声部
         helper.setText(R.id.subject_name, item.subjectName);
+
+        TextView tv_course_status_tip = helper.getView(R.id.tv_course_status_tip);
+        TextView tv_operate_tip = helper.getView(R.id.tv_operate_tip);
+        if (TextUtils.equals(type, MineLiveCourseActivity.TYPE_ING)) {
+            //进行中
+            tv_course_status_tip.setText("进行中");
+            tv_course_status_tip.setTextColor(getContext().getResources().getColor(com.cooleshow.base.R.color.color_2dc7aa));
+            tv_course_status_tip.setBackgroundResource(R.drawable.shape_d5fff7_15dp_left);
+            tv_operate_tip.setVisibility(View.GONE);
+        } else if (TextUtils.equals(type, MineLiveCourseActivity.TYPE_NOT_SALE)) {
+            //未上架
+            tv_course_status_tip.setText("未上架");
+            tv_course_status_tip.setTextColor(getContext().getResources().getColor(com.cooleshow.base.R.color.color_ff4e19));
+            tv_course_status_tip.setBackgroundResource(R.drawable.shape_ffeee3_15dp_left);
+            tv_operate_tip.setVisibility(View.GONE);
+        } else if (TextUtils.equals(type, MineLiveCourseActivity.TYPE_APPLY)) {
+            //销售中
+            tv_course_status_tip.setText("未上架");
+            tv_course_status_tip.setTextColor(getContext().getResources().getColor(com.cooleshow.base.R.color.color_ff1919));
+            tv_course_status_tip.setBackgroundResource(R.drawable.shape_ffe7e7_15dp_left);
+            tv_operate_tip.setVisibility(View.VISIBLE);
+            tv_operate_tip.setTextColor(getContext().getResources().getColor(com.cooleshow.base.R.color.color_008ae0));
+            tv_operate_tip.setCompoundDrawablesWithIntrinsicBounds(null, null, getContext().getResources().getDrawable(com.cooleshow.base.R.drawable.icon_arrow_right_small_blue), null);
+        } else if (TextUtils.equals(type, MineLiveCourseActivity.TYPE_COMPLETE)) {
+            //已完成
+            tv_course_status_tip.setText("已完成");
+            tv_course_status_tip.setTextColor(getContext().getResources().getColor(com.cooleshow.base.R.color.color_008ae0));
+            tv_course_status_tip.setBackgroundResource(R.drawable.shape_def2ff_15dp_left);
+            tv_operate_tip.setVisibility(View.GONE);
+        } else if (TextUtils.equals(type, MineLiveCourseActivity.TYPE_CANCEL)) {
+            //已取消
+            tv_course_status_tip.setText("已取消");
+            tv_course_status_tip.setTextColor(getContext().getResources().getColor(com.cooleshow.base.R.color.color_666666));
+            tv_course_status_tip.setBackgroundResource(R.drawable.shape_f0f0f0_15dp_left);
+            tv_operate_tip.setVisibility(View.GONE);
+        } else if (TextUtils.equals(type, MineLiveCourseActivity.TYPE_OUT_SALE)) {
+            tv_course_status_tip.setText("已下架");
+            tv_course_status_tip.setTextColor(getContext().getResources().getColor(com.cooleshow.base.R.color.color_666666));
+            tv_course_status_tip.setBackgroundResource(R.drawable.shape_f0f0f0_15dp_left);
+            tv_operate_tip.setVisibility(View.VISIBLE);
+            tv_operate_tip.setText("重新上架");
+            tv_operate_tip.setCompoundDrawablesWithIntrinsicBounds(null, null, getContext().getResources().getDrawable(com.cooleshow.base.R.drawable.icon_arrow_right_small_red), null);
+        }
     }
 
     @NonNull

+ 13 - 7
teacher/src/main/java/com/cooleshow/teacher/ui/course/MineLiveCourseActivity.java

@@ -35,6 +35,19 @@ import io.rong.imkit.utils.StatusBarUtil;
  */
 @Route(path = RouterPath.CourseCenter.TEACHER_MINE_LIVE_COURSE)
 public class MineLiveCourseActivity extends BaseMVPActivity<ActivityMineLiveCourseBinding, MineLiveCoursePresenter> implements View.OnClickListener {
+    private List<String> titles = new ArrayList<String>(Arrays.asList("进行中", "未上架", "销售中", "已完成", "已取消","已下架"));
+    private List<String> types = new ArrayList<String>(Arrays.asList(TYPE_ING, TYPE_NOT_SALE, TYPE_APPLY, TYPE_COMPLETE, TYPE_CANCEL,TYPE_OUT_SALE));
+    private List<Fragment> fragments = new ArrayList<>();
+    private TabLayout tabLayout;
+    private ViewPager viewPager;
+    public static final String TYPE_ING = "ING";//进行中
+    public static final String TYPE_NOT_SALE = "NOT_SALE";//未上架
+    public static final String TYPE_APPLY = "APPLY";//销售中
+    public static final String TYPE_COMPLETE = "COMPLETE";//已完成
+    public static final String TYPE_CANCEL = "CANCEL";//已取消
+    public static final String TYPE_OUT_SALE = "OUT_SALE";//已下架
+
+
     @Override
     public void onClick(View view) {
         switch (view.getId()) {
@@ -52,9 +65,6 @@ public class MineLiveCourseActivity extends BaseMVPActivity<ActivityMineLiveCour
         }
     }
 
-    private TabLayout tabLayout;
-    private ViewPager viewPager;
-
     @Override
     protected void initView() {
         initMidTitleToolBar(viewBinding.toolbarInclude.toolbar, "直播课");
@@ -80,10 +90,6 @@ public class MineLiveCourseActivity extends BaseMVPActivity<ActivityMineLiveCour
         initTabLayoutAndViewPager();
     }
 
-    private List<String> titles = new ArrayList<String>(Arrays.asList("进行中", "未上架", "销售中", "已完成", "已取消","已下架"));
-    private List<String> types = new ArrayList<String>(Arrays.asList("ING", "NOT_SALE", "APPLY", "COMPLETE", "CANCEL","OUT_SALE"));
-    private List<Fragment> fragments = new ArrayList<>();
-
     private void initTabLayoutAndViewPager() {
         tabLayout.removeAllTabs();
         fragments.clear();

+ 1 - 1
teacher/src/main/java/com/cooleshow/teacher/ui/course/MineLiveCourseFragment.java

@@ -95,7 +95,7 @@ public class MineLiveCourseFragment extends BaseMVPFragment<FragmentMineLiveCour
         RecyclerView rvAddress = mViewBinding.recyclerView;
         LinearLayoutManager manager = new LinearLayoutManager(getContext());
         rvAddress.setLayoutManager(manager);
-        mineLiveCourseAdapter = new MineLiveCourseAdapter();
+        mineLiveCourseAdapter = new MineLiveCourseAdapter(type);
         LayoutInflater inflater = LayoutInflater.from(getContext());
         View emptyLayout = inflater.inflate(R.layout.empty_mine_live_course, null);
         TextView tv_create = emptyLayout.findViewById(R.id.tv_create);

+ 6 - 0
teacher/src/main/res/drawable/shape_d5fff7_15dp_left.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+    <solid android:color="@color/color_d5fff7"/>
+    <corners android:topLeftRadius="15dp"
+        android:bottomLeftRadius="15dp"/>
+</shape>

+ 6 - 0
teacher/src/main/res/drawable/shape_def2ff_15dp_left.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+    <solid android:color="@color/color_def2ff"/>
+    <corners android:topLeftRadius="15dp"
+        android:bottomLeftRadius="15dp"/>
+</shape>

+ 6 - 0
teacher/src/main/res/drawable/shape_f0f0f0_15dp_left.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+    <solid android:color="@color/color_f0f0f0"/>
+    <corners android:topLeftRadius="15dp"
+        android:bottomLeftRadius="15dp"/>
+</shape>

+ 6 - 0
teacher/src/main/res/drawable/shape_ffe7e7_15dp_left.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+    <solid android:color="@color/color_ffe7e7"/>
+    <corners android:topLeftRadius="15dp"
+        android:bottomLeftRadius="15dp"/>
+</shape>

+ 6 - 0
teacher/src/main/res/drawable/shape_ffeee3_15dp_left.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+    <solid android:color="@color/color_ffeee3"/>
+    <corners android:topLeftRadius="15dp"
+        android:bottomLeftRadius="15dp"/>
+</shape>

+ 154 - 123
teacher/src/main/res/layout/layout_mine_live_course_item.xml

@@ -1,140 +1,171 @@
 <?xml version="1.0" encoding="utf-8"?>
-<RelativeLayout 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:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
-    xmlns:tools="http://schemas.android.com/tools">
+    android:layout_marginLeft="14dp"
+    android:layout_marginTop="12dp"
+    android:layout_marginRight="14dp"
+    android:background="@drawable/bg_white_10dp">
 
-    <androidx.constraintlayout.widget.ConstraintLayout
-        android:layout_width="match_parent"
-        android:layout_height="@dimen/dp_141"
+    <TextView
+        android:id="@+id/tv_status_title"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_marginStart="14dp"
+        android:layout_marginTop="9dp"
+        android:text="课程状态"
+        android:textColor="@color/color_333333"
+        app:layout_constraintLeft_toLeftOf="parent"
+        app:layout_constraintTop_toTopOf="parent" />
+
+    <TextView
+        android:id="@+id/tv_course_status_tip"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_marginTop="7dp"
+        android:background="@drawable/shape_ffeee3_15dp_left"
+        android:gravity="center"
+        android:paddingStart="12dp"
+        android:paddingTop="3dp"
+        android:paddingEnd="12dp"
+        android:paddingBottom="3dp"
+        android:text="未上架"
+        android:textColor="@color/color_ff4e19"
+        android:textSize="@dimen/sp_10"
+        app:layout_constraintRight_toRightOf="parent"
+        app:layout_constraintTop_toTopOf="parent" />
+
+    <com.cooleshow.base.widgets.QMUIRadiusImageView
+        android:id="@+id/im_pic"
+        android:layout_width="@dimen/dp_105"
+        android:layout_height="@dimen/dp_71"
         android:layout_marginLeft="14dp"
-        android:layout_marginTop="12dp"
-        android:layout_marginRight="14dp"
-        android:background="@drawable/bg_white_10dp">
+        android:layout_marginTop="11dp"
+        app:layout_constraintLeft_toLeftOf="parent"
+        app:layout_constraintTop_toBottomOf="@+id/tv_status_title"
+        app:qmui_corner_radius="5dp" />
 
-        <com.cooleshow.base.widgets.QMUIRadiusImageView
-            android:id="@+id/im_pic"
-            android:layout_width="@dimen/dp_105"
-            android:layout_height="@dimen/dp_71"
-            android:layout_marginLeft="11dp"
-            android:layout_marginTop="16dp"
-            app:layout_constraintLeft_toLeftOf="parent"
-            app:layout_constraintTop_toTopOf="parent"
-            app:qmui_corner_radius="5dp" />
+    <TextView
+        android:id="@+id/subject_name"
+        android:layout_width="wrap_content"
+        android:layout_height="@dimen/dp_13"
+        android:layout_marginStart="@dimen/dp_3"
+        android:layout_marginBottom="@dimen/dp_4"
+        android:background="@drawable/gray_1_radius_bg"
+        android:gravity="center"
+        android:includeFontPadding="false"
+        android:paddingStart="@dimen/dp_3"
+        android:paddingEnd="@dimen/dp_3"
+        android:textColor="@color/white"
+        android:textSize="@dimen/sp_9"
+        app:layout_constraintBottom_toBottomOf="@+id/im_pic"
+        app:layout_constraintLeft_toLeftOf="@+id/im_pic"
+        tools:text="单簧管" />
 
-        <TextView
-            android:id="@+id/subject_name"
-            android:layout_width="wrap_content"
-            android:layout_height="@dimen/dp_13"
-            android:layout_marginStart="@dimen/dp_3"
-            android:layout_marginBottom="@dimen/dp_4"
-            android:background="@drawable/gray_1_radius_bg"
-            android:gravity="center"
-            android:includeFontPadding="false"
-            android:paddingStart="@dimen/dp_3"
-            android:paddingEnd="@dimen/dp_3"
-            android:textColor="@color/white"
-            android:textSize="@dimen/sp_9"
-            app:layout_constraintBottom_toBottomOf="@+id/im_pic"
-            app:layout_constraintLeft_toLeftOf="@+id/im_pic"
-            tools:text="单簧管" />
+    <TextView
+        android:id="@+id/tv_course_name"
+        android:layout_width="0dp"
+        android:layout_height="wrap_content"
+        android:layout_marginLeft="12dp"
+        android:layout_marginEnd="14dp"
+        android:ellipsize="end"
+        android:maxLines="2"
+        android:text="从零开始学竖笛直播课"
+        android:textColor="@color/color_1a1a1a"
+        android:textSize="@dimen/sp_15"
+        app:layout_constraintLeft_toRightOf="@+id/im_pic"
+        app:layout_constraintRight_toRightOf="parent"
+        app:layout_constraintTop_toTopOf="@+id/im_pic" />
 
-        <TextView
-            android:id="@+id/tv_subject_name"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_marginLeft="12dp"
-            android:text="从零开始学竖笛直播课"
-            android:textColor="@color/color_1a1a1a"
-            android:textSize="@dimen/sp_15"
-            app:layout_constraintLeft_toRightOf="@+id/im_pic"
-            app:layout_constraintTop_toTopOf="@+id/im_pic" />
+    <TextView
+        android:id="@+id/tv_price"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_marginRight="11dp"
+        android:paddingStart="14dp"
+        android:text="¥120"
+        android:textColor="@color/color_ff0000"
+        android:textSize="@dimen/sp_15"
+        android:textStyle="bold"
+        app:layout_constraintBottom_toBottomOf="@+id/im_pic"
+        app:layout_constraintLeft_toRightOf="@+id/im_pic" />
 
-        <de.hdodenhof.circleimageview.CircleImageView
-            android:id="@+id/im_header"
-            android:layout_width="18dp"
-            android:layout_height="18dp"
-            android:layout_marginLeft="14dp"
-            android:src="@drawable/icon_teacher_default_head"
-            app:layout_constraintBottom_toBottomOf="@+id/im_pic"
-            app:layout_constraintLeft_toRightOf="@+id/im_pic" />
+    <TextView
+        android:id="@+id/tv_price_unit"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_marginRight="11dp"
+        android:paddingStart="7dp"
+        android:text="/4课时"
+        android:textColor="@color/color_999999"
+        android:textSize="@dimen/sp_14"
+        app:layout_constraintBaseline_toBaselineOf="@+id/tv_price"
+        app:layout_constraintLeft_toRightOf="@+id/tv_price" />
 
-        <TextView
-            android:id="@+id/tv_teacher_name"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_marginLeft="6dp"
-            android:text="李老师"
-            android:textColor="@color/color_999999"
-            android:textSize="@dimen/sp_13"
-            app:layout_constraintBottom_toBottomOf="@+id/im_header"
-            app:layout_constraintLeft_toRightOf="@+id/im_header"
-            app:layout_constraintTop_toTopOf="@+id/im_header" />
 
-        <View
-            android:id="@+id/view_line"
-            android:layout_width="1dp"
-            android:layout_height="@dimen/dp_11"
-            android:layout_marginLeft="10dp"
-            android:background="@color/color_d3d3d3"
-            app:layout_constraintBottom_toBottomOf="@+id/im_header"
-            app:layout_constraintLeft_toRightOf="@+id/tv_teacher_name"
-            app:layout_constraintTop_toTopOf="@+id/im_header" />
+    <TextView
+        android:id="@+id/tv_operate_tip"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_marginEnd="14dp"
+        android:drawableRight="@drawable/icon_arrow_right_small_blue"
+        android:drawablePadding="4dp"
+        android:gravity="center"
+        android:text="下架课程"
+        android:textColor="@color/color_008ae0"
+        android:textSize="@dimen/sp_14"
+        app:layout_constraintBottom_toBottomOf="@+id/tv_price"
+        app:layout_constraintRight_toRightOf="parent"
+        app:layout_constraintTop_toTopOf="@+id/tv_price" />
 
-        <TextView
-            android:id="@+id/tv_student_count"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_marginLeft="8dp"
-            android:text="6人已购买"
-            android:textColor="@color/color_ff802c"
-            android:textSize="@dimen/sp_13"
-            app:layout_constraintBottom_toBottomOf="@+id/im_header"
-            app:layout_constraintLeft_toRightOf="@+id/view_line"
-            app:layout_constraintTop_toTopOf="@+id/im_header" />
 
-        <View
-            android:id="@+id/view_line1"
-            android:layout_width="match_parent"
-            android:layout_height="1dp"
-            android:layout_marginLeft="10dp"
-            android:layout_marginTop="15dp"
-            android:layout_marginRight="9dp"
-            android:background="@color/color_f2f2f2"
-            app:layout_constraintTop_toBottomOf="@+id/im_pic" />
+    <TextView
+        android:id="@+id/tv_student_count"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_marginLeft="8dp"
+        android:layout_marginEnd="14dp"
+        android:text="6人已购买"
+        android:textColor="@color/color_ff802c"
+        android:textSize="@dimen/sp_13"
+        app:layout_constraintBottom_toBottomOf="parent"
+        app:layout_constraintRight_toRightOf="parent"
+        app:layout_constraintTop_toTopOf="@+id/view_line1" />
+
+    <View
+        android:id="@+id/view_line1"
+        android:layout_width="match_parent"
+        android:layout_height="1dp"
+        android:layout_marginLeft="10dp"
+        android:layout_marginTop="15dp"
+        android:layout_marginRight="9dp"
+        android:background="@color/color_f2f2f2"
+        app:layout_constraintTop_toBottomOf="@+id/im_pic" />
 
-        <ImageView
-            android:id="@+id/im_date"
-            android:layout_width="@dimen/dp_16"
-            android:layout_height="@dimen/dp_16"
-            android:layout_marginTop="10dp"
-            android:background="@drawable/icon_live_date_item"
-            app:layout_constraintLeft_toLeftOf="@+id/im_pic"
-            app:layout_constraintTop_toBottomOf="@+id/view_line1" />
 
-        <TextView
-            android:id="@+id/tv_date"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_marginLeft="7dp"
-            android:text="2021/09/17 14:00~14:25"
-            android:textColor="@color/color_666666"
-            android:textSize="@dimen/sp_13"
-            app:layout_constraintBottom_toBottomOf="@+id/im_date"
-            app:layout_constraintLeft_toRightOf="@+id/im_date"
-            app:layout_constraintTop_toTopOf="@+id/im_date" />
+    <ImageView
+        android:id="@+id/im_date"
+        android:layout_width="@dimen/dp_16"
+        android:layout_height="@dimen/dp_16"
+        android:layout_marginTop="10dp"
+        android:background="@drawable/icon_live_date_item"
+        android:visibility="gone"
+        app:layout_constraintLeft_toLeftOf="@+id/im_pic"
+        app:layout_constraintTop_toBottomOf="@+id/view_line1" />
 
-        <TextView
-            android:id="@+id/tv_price"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_marginRight="11dp"
-            android:text="¥120/4课时"
-            android:textColor="@color/color_2dc7aa"
-            android:textSize="@dimen/sp_15"
-            app:layout_constraintBottom_toBottomOf="@+id/im_date"
-            app:layout_constraintRight_toRightOf="parent"
-            app:layout_constraintTop_toTopOf="@+id/im_date" />
-    </androidx.constraintlayout.widget.ConstraintLayout>
-</RelativeLayout>
+    <TextView
+        android:layout_marginBottom="10dp"
+        android:layout_marginTop="10dp"
+        android:id="@+id/tv_date"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_marginLeft="14dp"
+        android:text="2021/09/17 14:00~14:25"
+        android:textColor="@color/color_666666"
+        android:textSize="@dimen/sp_13"
+        app:layout_constraintBottom_toBottomOf="parent"
+        app:layout_constraintLeft_toRightOf="@+id/im_date"
+        app:layout_constraintTop_toBottomOf="@+id/view_line1" />
+</androidx.constraintlayout.widget.ConstraintLayout>