这就是我想要的:如上图,我想在RecycleView上画一条中心线,然后在滚动时获取中心项(以及向左或向右移动)这是我尝试绘制水平的RecycleView:HorizontalAdapteradapter=newHorizontalAdapter(data);LinearLayoutManagerlayoutManager=newLinearLayoutManager(this,LinearLayoutManager.HORIZONTAL,false);recycleView.setLayoutManager(layoutManager);recycleView.setAdapter(
这就是我想要的:如上图,我想在RecycleView上画一条中心线,然后在滚动时获取中心项(以及向左或向右移动)这是我尝试绘制水平的RecycleView:HorizontalAdapteradapter=newHorizontalAdapter(data);LinearLayoutManagerlayoutManager=newLinearLayoutManager(this,LinearLayoutManager.HORIZONTAL,false);recycleView.setLayoutManager(layoutManager);recycleView.setAdapter(