how to move to the perticular image of the horizantalscrollview in android
if we click on the third image of the gallery then that image will be displayed and if we scroll right then next image will be displayed and if we scroll left then previous image will be displayed.开发者_开发技巧
Please consider rephrasing your question, it is unclear what you are looking for. I will hazard a guess that you want to implement a gallery, using the Gallery class and displaying the selected image in a larger view below.
What you need to do then is to follow the tutorial on: http://developer.android.com/guide/tutorials/views/hello-gallery.html but instead of having the Gallery as the root element of the layout xml, use a LinearLayout or other, where you put both the Gallery and an ImageView. Then implement an onItemSelectedListener for the Gallery, in which you bind the ImageView to the selected image resource.
精彩评论