13

I need to implement a gallery of clickable images that can be scrolled horizontally, and the Gallery widget is deprecated. What is the best replacement?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
user1787773
  • 888
  • 1
  • 11
  • 19

4 Answers4

3

You can use ImageView which will scroll in horizontally on swipe.For the swipe you can use onFling() method where you can handle left and right swipe.Read this post for gesture detection. Good luck

Community
  • 1
  • 1
Akshay
  • 2,506
  • 4
  • 34
  • 55
1

You may want to use a custom horizontal listview (by Paul Soucy from dev-smart.com) https://github.com/vieux/Android-Horizontal-ListView

julian
  • 381
  • 1
  • 7
1

Use DevsmartLib-Android. Also, if you don't care about the flinging, you can use ViewPager.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
android developer
  • 114,585
  • 152
  • 739
  • 1,270
0

This one is much better: https://github.com/sephiroth74/HorizontalVariableListView

Good Luck!

Alécio Carvalho
  • 13,481
  • 5
  • 68
  • 74