Pq 8 mesiacov pred
rodič
commit
f5049b2e99

+ 1 - 1
BaseLibrary/src/main/res/values/strings.xml

@@ -37,7 +37,7 @@
     <string name="video_course_tip_str">视频课是由教师事先精心准备并录制的课程内容。教师依据教学大纲和目标,系统规划每一节视频的主题与内容,确保教学的连贯性和完整性。在录制过程中,采用专业设备如高清摄像机和录屏软件,保障视频画质清晰、音频质量优良。视频课为学生提供了极大的学习灵活性,他们可以依据个人的时间安排自由选择学习时间,不受地点限制。特别适用于系统化学习体系的内容,视频课能够帮助学生按部就班地掌握知识,实现自主高效学习。</string>
     <string name="piano_course_tip_str">琴房课是针对教师私有学生的线上课程,您可以通过我的-云酷琴房邀请自己的学生与自己绑定,并为已绑定学生安排线上课程。琴房课无需学生付费,教师需充值琴房时长后排课,排课时根据课程时长与上课人数扣减已购买时长。</string>
     <string name="piano_course_tip_str_student">琴房课是专为教师和他们的私有学生设计的1对多线上课程。通过教师分享的云酷琴房链接,学生可以与教师绑定,从而进入专属的线上琴房。在琴房中,教师可以为学生安排和管理线上课程,提供个性化的教学体验。</string>
-    <string name="vip_course_tip_title">什么是VIP定制课?</string>
+    <string name="vip_course_tip_title">什么是VIP定制课?</string>
     <string name="interest_course_tip_title">什么是趣纠课?</string>
     <string name="live_course_tip_title">什么是直播课?</string>
     <string name="video_course_tip_title">什么是视频课?</string>

+ 4 - 3
student/src/main/java/com/cooleshow/student/ui/main/MusicHallFragment.java

@@ -30,6 +30,7 @@ import java.util.List;
 
 import androidx.recyclerview.widget.LinearLayoutManager;
 import androidx.recyclerview.widget.LinearSnapHelper;
+import androidx.recyclerview.widget.PagerSnapHelper;
 import androidx.viewbinding.ViewBinding;
 
 /**
@@ -71,7 +72,7 @@ public class MusicHallFragment extends BaseMVPFragment<FgMusicHallLayoutBinding,
         LinearLayoutManager recommendMusicSheetManager = new LinearLayoutManager(getContext());
         recommendMusicSheetManager.setOrientation(LinearLayoutManager.HORIZONTAL);
         mRecommendAdapter = new HomeHotMusicSheetAdapter();
-        LinearSnapHelper recommendlinearSnapHelper = new LinearSnapHelper();
+        PagerSnapHelper recommendlinearSnapHelper = new PagerSnapHelper();
         recommendlinearSnapHelper.attachToRecyclerView(mViewBinding.rvRecommendTrack);
         HomeHotMusicSheetItemDecoration itemDecoration1 = new HomeHotMusicSheetItemDecoration(0, SizeUtils.dp2px(12), 0, SizeUtils.dp2px(12), 0);
         mViewBinding.rvRecommendTrack.addItemDecoration(itemDecoration1);
@@ -82,7 +83,7 @@ public class MusicHallFragment extends BaseMVPFragment<FgMusicHallLayoutBinding,
         LinearLayoutManager latestMusicSheetManager = new LinearLayoutManager(getContext());
         latestMusicSheetManager.setOrientation(LinearLayoutManager.HORIZONTAL);
         mLatestAdapter = new HomeHotMusicSheetAdapter();
-        LinearSnapHelper linearSnapHelper = new LinearSnapHelper();
+        PagerSnapHelper linearSnapHelper = new PagerSnapHelper();
         linearSnapHelper.attachToRecyclerView(mViewBinding.rvLatestTrack);
         HomeHotMusicSheetItemDecoration itemDecoration2 = new HomeHotMusicSheetItemDecoration(0, SizeUtils.dp2px(12), 0, SizeUtils.dp2px(12), 0);
         mViewBinding.rvLatestTrack.addItemDecoration(itemDecoration2);
@@ -94,7 +95,7 @@ public class MusicHallFragment extends BaseMVPFragment<FgMusicHallLayoutBinding,
         LinearLayoutManager musicSheetManager = new LinearLayoutManager(getContext());
         musicSheetManager.setOrientation(LinearLayoutManager.HORIZONTAL);
         mHomeHotMusicSheetAdapter = new HomeHotMusicSheetAdapter();
-        LinearSnapHelper hotTracklinearSnapHelper = new LinearSnapHelper();
+        PagerSnapHelper hotTracklinearSnapHelper = new PagerSnapHelper();
         hotTracklinearSnapHelper.attachToRecyclerView(mViewBinding.rvHotTrack);
         HomeHotMusicSheetItemDecoration itemDecoration = new HomeHotMusicSheetItemDecoration(0, 0, 0, SizeUtils.dp2px(12), 0);
         mViewBinding.rvHotTrack.addItemDecoration(itemDecoration);