Browse Source

增加机构端我的作品入口

Pq 1 year ago
parent
commit
fe615f5007

+ 7 - 0
institution/src/main/java/com/cooleshow/institution/stu/ui/main/MineFragment.java

@@ -50,6 +50,7 @@ public class MineFragment extends BaseMVPFragment<FgMineLayoutBinding, MinePrese
         mViewBinding.tvFeedBack.setOnClickListener(this);
         mViewBinding.tvUserProtocol.setOnClickListener(this);
         mViewBinding.tvPrivacyPolicy.setOnClickListener(this);
+        mViewBinding.tvMineWorks.setOnClickListener(this);
         mViewBinding.tvAboutUs.setOnClickListener(this);
         mViewBinding.imMessage.setOnClickListener(this);
     }
@@ -188,6 +189,12 @@ public class MineFragment extends BaseMVPFragment<FgMineLayoutBinding, MinePrese
                     .navigation();
             return;
         }
+
+        if (id == R.id.tv_mine_works) {
+            ARouter.getInstance().build(RouterPath.Homework.MY_WORK)
+                    .navigation();
+            return;
+        }
     }
 
     @Override

BIN
institution/src/main/res/drawable-xhdpi/jg_icon_mine_works.png


BIN
institution/src/main/res/drawable-xxhdpi/jg_icon_mine_works.png


+ 16 - 0
institution/src/main/res/layout/fg_mine_layout.xml

@@ -514,6 +514,22 @@
                 app:layout_constraintLeft_toLeftOf="@+id/guide_line5"
                 app:layout_constraintTop_toTopOf="@+id/tv_mine_track_list" />
 
+
+            <TextView
+                android:layout_marginTop="14dp"
+                android:id="@+id/tv_mine_works"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:drawableTop="@drawable/jg_icon_mine_works"
+                android:drawablePadding="@dimen/dp_4"
+                android:includeFontPadding="false"
+                android:text="我的作品"
+                android:textColor="@color/color_333333"
+                android:textSize="@dimen/sp_12"
+                app:layout_constraintHorizontal_weight="1"
+                app:layout_constraintRight_toRightOf="@+id/tv_mine_track_list"
+                app:layout_constraintLeft_toLeftOf="@+id/tv_mine_track_list"
+                app:layout_constraintTop_toBottomOf="@+id/tv_mine_track_list" />
         </androidx.constraintlayout.widget.ConstraintLayout>
 
         <androidx.constraintlayout.widget.ConstraintLayout