|
@@ -161,10 +161,10 @@ public class NewHomeFragment extends BaseMVPFragment<FragmentNewHomeLayoutBindin
|
|
|
mViewBinding.recyclerviewRecommendTalent.addItemDecoration(commonItemDecoration);
|
|
|
mViewBinding.recyclerviewRecommendTalent.setAdapter(mRecommendTalentAdapter);
|
|
|
|
|
|
- GridLayoutManager videoCourseManager = new GridLayoutManager(getContext(), 2);
|
|
|
+ LinearLayoutManager videoCourseManager = new LinearLayoutManager(getContext(),LinearLayoutManager.HORIZONTAL,false);
|
|
|
mViewBinding.rvVideoCourse.setLayoutManager(videoCourseManager);
|
|
|
mHomeVideoCourseAdapter = new NewHomeVideoCourseAdapter();
|
|
|
- CommonItemDecoration videoListItemDecoration = new CommonItemDecoration(SizeUtils.dp2px(12), SizeUtils.dp2px(5), 0, SizeUtils.dp2px(5), 0);
|
|
|
+ CommonItemDecoration videoListItemDecoration = new CommonItemDecoration(SizeUtils.dp2px(12), 0, 0, SizeUtils.dp2px(10), 0);
|
|
|
mViewBinding.rvVideoCourse.addItemDecoration(videoListItemDecoration);
|
|
|
mViewBinding.rvVideoCourse.setAdapter(mHomeVideoCourseAdapter);
|
|
|
|