소스 검색

首页小工具位置更换

Pq 8 달 전
부모
커밋
04c3cde729

+ 6 - 0
student/src/main/java/com/cooleshow/student/ui/main/NewHomeFragmentV2.java

@@ -136,6 +136,7 @@ public class NewHomeFragmentV2 extends BaseMVPFragment<FgNewHomeV2LayoutBinding,
         mViewBinding.tvVideoCourseMore.setOnClickListener(this);
         mViewBinding.viewCourseInfoBg.setOnClickListener(this);
         mViewBinding.viewPracticeInfoBg.setOnClickListener(this);
+        mViewBinding.ivSmallTools.setOnClickListener(this);
     }
 
     @Override
@@ -761,6 +762,11 @@ public class NewHomeFragmentV2 extends BaseMVPFragment<FgNewHomeV2LayoutBinding,
             JumpUtils.jumpMain(2);
             return;
         }
+        if (id == R.id.iv_small_tools) {
+            //小工具
+            ARouter.getInstance().build(RouterPath.MusicTuner.MUSIC_TUNER_PAGE).navigation();
+            return;
+        }
     }
 
     private void showRecommendTalentMenuDialog() {

BIN
student/src/main/res/drawable-xhdpi/icon_home_small_tools.png


BIN
student/src/main/res/drawable-xxhdpi/icon_home_small_tools.png


+ 11 - 0
student/src/main/res/layout/fg_new_home_v2_layout.xml

@@ -49,6 +49,17 @@
         app:layout_constraintTop_toBottomOf="@+id/iv_logo" />
 
     <ImageView
+        android:id="@+id/iv_small_tools"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:padding="8dp"
+        android:src="@drawable/icon_home_small_tools"
+        android:visibility="visible"
+        app:layout_constraintBottom_toBottomOf="@+id/iv_logo"
+        app:layout_constraintRight_toLeftOf="@+id/iv_scan"
+        app:layout_constraintTop_toTopOf="@+id/iv_logo" />
+
+    <ImageView
         android:id="@+id/iv_scan"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"