安卓垂直滚动视图中的水平列表视图



我需要像 https://play.google.com/store/apps/details?id=com.alphonso.pulse 这样的应用程序

我尝试的是,

   I think they should done through horizontalscrollview/horizontallistview.
   So i integrate horizontal listview through this sample,

https://www.dev-smart.com/archives/34

我需要的是,

  • 我需要在垂直列表视图中集成水平列表视图

  • 我应该知道他们如何整合这个想法

任何帮助都应该是可观的。谢谢

我迟到了,但你可以使用它.. https://github.com/lucasr/twoway-view

你需要这样的东西吗?

<ScrollView>
  <LinearLayout android:orientation="vertical">
    <!-- First row -->
    <HorizontalScrollView>
      <LinearLayout android:orientation="horizontal">
        <!-- Items of this row -->
      </LinearLayout>
    </HorizontalScrollView>
  </LinearLayout>
</ScrollView>

您将需要设置适当的布局属性,并且可能需要向行添加标题。如果行数可变,则可以通过编程方式创建它们。

最新更新