gpt4 book ai didi

android - 具有水平可滚动行的垂直滚动列表的回收器 View

转载 作者:IT王子 更新时间:2023-10-28 23:32:41 28 4
gpt4 key购买 nike

我想要一个 RecyclerView,其中我们有垂直可滚动的项目列表。从这个可滚动的项目列表中,一些应该能够在水平方向滚动。如下图所示 enter image description here

谁能指导我怎么做?

谢谢。

最佳答案

Custom LayoutManagers

  • 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

关于 RecyclerView LayoutManager 的更多细节:http://wiresareobsolete.com/2014/09/building-a-recyclerview-layoutmanager-part-1/

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

关于android - 具有水平可滚动行的垂直滚动列表的回收器 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31129702/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com