[英]Horizontal list view in vertical scroll view in android
I need to implement application like https://play.google.com/store/apps/details?id=com.alphonso.pulse 我需要实施https://play.google.com/store/apps/details?id=com.alphonso.pulse之类的应用程序
what i tried is, 我试过的是
I think they should done through horizontalscrollview/horizontallistview.
So i integrate horizontal listview through this sample,
https://www.dev-smart.com/archives/34 https://www.dev-smart.com/archives/34
what i need is, 我需要的是
I need to integrate horizontal listview inside the vertical listview 我需要将水平列表视图集成到垂直列表视图中
I should know how they integrate this idea 我应该知道他们如何整合这个想法
Any help should be appreciable.Thanks 任何帮助都应该是可观的。
Do you need something like this? 你需要这样的东西吗?
<ScrollView>
<LinearLayout android:orientation="vertical">
<!-- First row -->
<HorizontalScrollView>
<LinearLayout android:orientation="horizontal">
<!-- Items of this row -->
</LinearLayout>
</HorizontalScrollView>
</LinearLayout>
</ScrollView>
You will need to set appropriate layout attributes and you might want to add titles to the rows. 您将需要设置适当的布局属性,并且可能要向行添加标题。 If you have a variable number of rows, you can create them programmatically. 如果行数可变,则可以以编程方式创建它们。
我来晚了,但是你可以用这个.. https://github.com/lucasr/twoway-view
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.