I am going to implement an image viewer, where I want to show one image at a time.
When the user touches the image with their finger and move the image to left/right, the next image should show.
I am wondering which view class I should use for this kind of image viewer? (Some kind of image list???)
P.S.: During the display of the current image, the neighbor(left & right) images are not visible, that is, the current image occupies the whole view area.
You should use the Gallery view, see tutorial.
To ensure that only one image is shown at a time, you can either
Set the image width to match the screen width (using ImageView.setLayoutParams)
Set the spacing of the gallery (using Gallery.setSpacing). Experiment with the spacing value until you get the desired result.