Ami*_*dey 5 android android-recyclerview
我正在努力实现像Google Play商店的目标网页一样的效果.我认为,层次结构如下 -
"新建+更新游戏"部分的水平滑动非常平滑,不会干扰垂直滚动.在我的实现中,在滑动期间,有一个上下移动,因此效果不顺畅.
理想情况下,只有显式的向上或向下手势,视图应该上升或下降.
我的理解是否正确?是否有任何教程或指南可以帮助我达到同样的效果?
Kan*_*ka 1
如果您可以添加一些代码片段以更好地理解您的问题,我将非常感激。尽管如此,这里是摘录
{
recyclerView.setHasFixedSize(true);
linearLayoutManager = new LinearLayoutManager(getContext(), LinearLayoutManager.HORIZONTAL, true);
linearLayoutManager.setReverseLayout(false);
linearLayoutManager.setStackFromEnd(false);
adapter = new RecyclerAdapter(getContext(), arrayList);
recyclerView.setLayoutManager(linearLayoutManager);
recyclerView.setAdapter(adapter);
recyclerView.setNestedScrollingEnabled(false);
adapter.notifyDataSetChanged();
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1983 次 |
| 最近记录: |