带有水平可滚动行的垂直滚动列表的回收者视图 [英] Recycler view of vertical scrolling list with Horizontal scrollable row

查看:55
本文介绍了带有水平可滚动行的垂直滚动列表的回收者视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个RecyclerView,其中有垂直的可滚动项列表. 从此可滚动的项目列表中,某些对象应具有在水平方向上滚动的能力. 如下图所示

I want an RecyclerView in which we have vertical scrollable list of items. From this scrollable list of items some should have ability to scroll in horizontal direction. As shown in below image

有人可以指导我怎么做吗?

can anyone please guide me how to do it?

谢谢.

推荐答案

自定义LayoutManagers

Custom LayoutManagers

  • StaticGridLayoutManager-具有基于数据集的可变列数的2D滚动网格.可见(不可回收)视图的窗口是
    静态确定.
  • DynamicGridLayoutManager-2D滚动网格,其中动态确定可见视图的窗口.导致观看次数减少 内存,但滚动性能令人怀疑.
  • StaticGridLayoutManager - 2D scrolling grid with variable column count based on data set. Window of visible (non-recycled) views is
    determined statically.
  • DynamicGridLayoutManager - 2D scrolling grid where window of visible views is determined dynamically. Results in fewer views in memory, but scrolling performance is questionable.

我遇到了同样的问题,我找到了这个图书馆.也许会对您有帮助. ​​ https://github.com/devunwired/recyclerview-playground

I have met the same problem and I found this library. Maybe it will help you. https://github.com/devunwired/recyclerview-playground

有关RecyclerView LayoutManager的更多详细信息: http://wiresareobsolete.com/2014/09/building-a-recyclerview-layoutmanager-part-1/

More detail about RecyclerView LayoutManager: http://wiresareobsolete.com/2014/09/building-a-recyclerview-layoutmanager-part-1/

p/s:对于您的情况 http://lucasr.org/2014/07/31/the-new-twowayview/

p/s: For your case http://lucasr.org/2014/07/31/the-new-twowayview/

这篇关于带有水平可滚动行的垂直滚动列表的回收者视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆