[英]Is there a horizontal scroll widget inside listview
I need to make a scrollable row in ListView's item. 我需要在ListView的项目中创建一个可滚动的行。 The row should behave similar to Gallery or ViewPager.
该行的行为应类似于Gallery或ViewPager。 It was designed to behave similarly to Facebook gallery.
它的设计行为类似于Facebook画廊。
I was planning to use Gallery but since it has been deprecated I'm not sure if it's a good choice. 我本来打算使用Gallery,但由于它已被弃用,因此我不确定它是否是一个不错的选择。 Although Fragment is recommend to be used to replace Gallery, it's not expected to be put inside a ListView.
尽管建议使用Fragment代替Gallery,但不应将其放在ListView中。
Is there other options for available? 还有其他选择吗? Or should I implement my own custom view to calculate and handle the view transition?
还是应该实现自己的自定义视图来计算和处理视图转换? Has anyone try something similar?
有人尝试过类似的东西吗?
Make the row item a HorizontalScrollView
with a LinearLayout
inside. 使行项目为
HorizontalScrollView
,并在其中包含LinearLayout
。 Make the LinearLayout
's oriantation horizontal
and add the things you need inside. 使
LinearLayout
的排列horizontal
然后在其中添加所需的内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.