【问题标题】:Android bidirectional view with recycling views?带有回收视图的Android双向视图?
【发布时间】:2016-11-02 12:53:38
【问题描述】:

经过几个小时的调查,我在Android中没有发现任何可以双向滚动并具有回收视图能力的视图。

我在寻找什么?我需要一个可以显示 256x256 按钮网格的视图。

屏幕上可以显示片刻~ 12x8 按钮,其他需要位于屏幕底部和右侧的一个。

我在这里找到的最相似的效果,

http://wiresareobsolete.com/2015/02/recyclerview-layoutmanager-redux/comment-page-1/

但在 GitHub 存储库上提供的代码已损坏 - 当我尝试快速滚动时 - 窗口变白了。

【问题讨论】:

    标签: android android-recyclerview android-custom-view recycle


    【解决方案1】:

    我还没有解决,但我希望这可能有效

    <HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent" android:layout_height="match_parent">
    
         <android.support.v7.widget.RecyclerView
              android:id="@+id/recyclerview"
              android:layout_width="match_parent"
              android:layout_height="match_parent">
    
         </android.support.v7.widget.RecyclerView>
    
    </HorizontalScrollView>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-03-25
      • 1970-01-01
      • 2012-05-13
      • 2018-05-22
      • 1970-01-01
      • 1970-01-01
      • 2017-06-15
      相关资源
      最近更新 更多