0

I'm trying to implement my ownt picrutes gallary app. I'm using ImageSwitche for showing big image and Gallery for showing thumbnails. The problem is that when user scrolls gallery it changes selection to thumbnain whic is in the middle of gallery but required behaviour is just scroll like ListView and change image when user tap on thumbnail.

Does anybody have suggestion how to implement such behaviour.

PS. HorizontalScrollView with LinearLayout inside is bad idea becaus of it does not recycle views and holds all the pictures of thumbnails in the memory.

oleg.semen
  • 2,901
  • 2
  • 28
  • 56

1 Answers1

0

Take a look at the solution I have for my own question here

Basically I ended up with slightly modified version of ViewPager to display N-number of pages instead of just one. The only thing that I don't like about that that you will not have velocity-based scrolling as in ListView

Community
  • 1
  • 1
Bostone
  • 36,858
  • 39
  • 167
  • 227
  • As far as I understand your implementation scrolls item one by one... But I need smooth scrolling like in ListView. Any way I found link to – oleg.semen Dec 17 '12 at 19:12