Parcourir la source

修改部分问题

Pq il y a 8 mois
Parent
commit
af64cf3600

+ 5 - 5
student/src/main/java/com/cooleshow/student/adapter/HomeworkAdapter.java

@@ -47,14 +47,14 @@ public class HomeworkAdapter extends BaseQuickAdapter<HomeworkListBean.RowsBean,
         ImageView im_header = helper.getView(R.id.im_header);
         TextView tv_name = helper.getView(R.id.tv_name);
         RecyclerView rv_mark = helper.getView(R.id.rv_mark);
-        if (TextUtils.equals(item.type, CourseConstants.OTHER_COURSE)) {
-            //陪练课
-            GlideUtils.INSTANCE.loadImage(getContext(), item.teacherAvatar, im_header, R.drawable.icon_teacher_default_head);
-            tv_name.setText(item.teacherName);
-        } else {
+        if (TextUtils.equals(item.type, CourseConstants.PIANO_ROOM_COURSE)) {
             //琴房课
             im_header.setImageResource(R.drawable.icon_piano_room_course);
             tv_name.setText(item.courseGroupName);
+        } else {
+            //陪练课
+            GlideUtils.INSTANCE.loadImage(getContext(), item.teacherAvatar, im_header, R.drawable.icon_teacher_default_head);
+            tv_name.setText(item.teacherName);
         }
 
         if (!TextUtils.isEmpty(item.subjectName)) {

+ 2 - 2
student/src/main/res/layout/layout_item_homework.xml

@@ -69,8 +69,8 @@
 
         <com.cooleshow.base.widgets.QMUIRadiusImageView
             android:id="@+id/im_header"
-            android:layout_width="@dimen/dp_47"
-            android:layout_height="@dimen/dp_51"
+            android:layout_width="54dp"
+            android:layout_height="54dp"
             android:layout_marginLeft="11dp"
             android:layout_marginTop="17dp"
             android:layout_marginBottom="20dp"