我在 ScrollView 中有多个 Horizo​​ntalScrollViews 。水平滚动根本不平滑。我必须几乎完美地水平滚动才能滚动工作。有一个简单的调整来调整这个???谢谢!

最佳答案

您可以将“回收站” View 与交错布局管理器一起使用

 StaggeredGridLayoutManager  staggeredGridLayoutManager = new StaggeredGridLayoutManager(4, StaggeredGridLayoutManager.HORIZONTAL);

 RecyclerViewAdapter recyclerViewAdapter = newRecyclerViewAdapter(this);

 recyclerView.setAdapter(recyclerViewAdapter); //Don't miss to initialize your adapter

09-28 09:58