0

I need to make a scrollable row in ListView's item. The row should behave similar to Gallery or ViewPager. It was designed to behave similarly to Facebook gallery.

I was planning to use Gallery but since it has been deprecated I'm not sure if it's a good choice. Although Fragment is recommend to be used to replace Gallery, it's not expected to be put inside a 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?

RobGThai
  • 5,937
  • 8
  • 41
  • 59

1 Answers1

1

Make the row item a HorizontalScrollView with a LinearLayout inside. Make the LinearLayout's oriantation horizontal and add the things you need inside.

stan0
  • 11,549
  • 6
  • 42
  • 59
  • I found the HorizontalScrollView doesn't support the ability to focus selected item. Or is there to make it behave like that? – RobGThai Mar 05 '13 at 14:09
  • 1
    Unfortunately I think it's true. I had to make touchListener to change the background of the selected item (inside the HorizontalScrollView's layoute) and store it's index. – stan0 Mar 05 '13 at 14:27