艾克伦情景配音列表记录(Akron scene dubbing list record)

使用RecyclerView水平滑动显示item,一个item占整个屏幕宽度, 所以基本写法水平滑动不会一个item一个item的显示完整,而是各自显示一部分。因此这个不是我们想要的结果。效果就是像广告轮播图一样,左右滑动是显示整个item的。那RecyclerView怎么实现呢,因为之前有看到文章使用RecyclerView实现广告轮播图,那肯定也是同样的问题存在。————————————————

//加在setAdapter后面
PagerSnapHelper snapHelper = new PagerSnapHelper();
snapHelper.attachToRecyclerView(RecyclerView);
————————

Use recyclerview to slide horizontally to display items. One item accounts for the entire screen width, so the basic writing method of horizontal sliding will not display a complete item, but a part of each item. So this is not the result we want. The effect is to slide left and right to display the entire item, just like the ad rotation diagram. How to implement recyclerview? Because I have seen articles using recyclerview to implement ad rotation map before, it must be the same problem————————————————

//加在setAdapter后面
PagerSnapHelper snapHelper = new PagerSnapHelper();
snapHelper.attachToRecyclerView(RecyclerView);