簡體   English   中英

Android中垂直滾動視圖中的水平列表視圖

[英]Horizontal list view in vertical scroll view in android

我需要實施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

我需要的是

  • 我需要將水平列表視圖集成到垂直列表視圖中

  • 我應該知道他們如何整合這個想法

任何幫助都應該是可觀的。

你需要這樣的東西嗎?

<ScrollView>
  <LinearLayout android:orientation="vertical">

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

  </LinearLayout>
</ScrollView>

您將需要設置適當的布局屬性,並且可能要向行添加標題。 如果行數可變,則可以以編程方式創建它們。

我來晚了,但是你可以用這個.. https://github.com/lucasr/twoway-view

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM