1

Im fairly new to andorid and getting to grips with the UI elements.

I have a collection of full size images which i wish to be able to page through, horizontally, by scrolling left or right.

I do not want a scroll effect where you could see half of one image and half of the next, i want to page so only one full image is visible at any one time.

My question is, which control is best to achieve this?

Im currently thinking just an ImageView and handle a gesture to load in the next image. I have looked at the gallery but this seems to not suit what im trying to do. The lists will give a scroll, not a paged effect which i dont want.

Thanks!

Jammin
  • 3,050
  • 2
  • 23
  • 34

2 Answers2

2

I think your are on the right track, but might want to put your ImageView into a ViewFlipper. This will allow you to have a nice animated transition when you switch images.

You should also take a look at the PagedView widget from the GreenDroid library.

Eric Levine
  • 13,536
  • 5
  • 49
  • 49
2

ImageView with the gesture is probably the easiest way of doing this. See Adding Fling Gesture to an image view - Android for a reasonable example.

Community
  • 1
  • 1
Femi
  • 64,273
  • 8
  • 118
  • 148