|
@@ -7,6 +7,7 @@ import android.widget.TextView;
|
|
|
import com.chad.library.adapter.base.BaseQuickAdapter;
|
|
|
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
|
|
|
import com.cooleshow.base.utils.GlideUtils;
|
|
|
+import com.cooleshow.base.utils.StringUtils;
|
|
|
import com.cooleshow.base.utils.TimeUtils;
|
|
|
import com.cooleshow.base.utils.UiUtils;
|
|
|
import com.cooleshow.student.R;
|
|
@@ -29,8 +30,13 @@ public class LiveCourseAppointAdapter extends BaseQuickAdapter<LiveCourseAppoint
|
|
|
holder.setText(R.id.tv_time, "开课时间:" + timeStr);
|
|
|
//title
|
|
|
holder.setText(R.id.tv_title, data.getCourseGroupName());
|
|
|
- //介绍
|
|
|
- holder.setText(R.id.tv_des, data.getCourseIntroduce());
|
|
|
+ //介绍\
|
|
|
+ String courseIntroduce = data.getCourseIntroduce();
|
|
|
+ if (TextUtils.isEmpty(courseIntroduce)) {
|
|
|
+ courseIntroduce = "暂无介绍";
|
|
|
+ }
|
|
|
+ courseIntroduce = StringUtils.replaceSpace(courseIntroduce);
|
|
|
+ holder.setText(R.id.tv_des, courseIntroduce);
|
|
|
//subjectName
|
|
|
holder.setText(R.id.tv_course_name, data.getSubjectName());
|
|
|
//购买人数
|