how to selecting image from list view and display it in image view?

I am creating a application which contains a listView on lefthand side that display different images now i want to show that particular image in the center of the screen when user clicks on any image in listView.


You can add a custom adapter for your listview and add an onitemselectedlistener where inside it you can get the image you put in the view, and set the imageview.

You should keep the list of path of images and when user taps you will get the postion from OnItemClickListener. Using the position you can load the image from path.

The link has good content on creating custom adapters , You should use that then just map your path and positons. try that and post when you are stuck

Need Your Help

What are the best Javascript/Flash frameworks to render graphs or charts from data?

javascript flash statistics charts visualization

Ideally I'd like to do as little preparation data work on the server as possible. The less I have to do to prep the data from the database to make a given chart, the happier I am and the more view ...

Too many points captured by onLocationChanged in android google maps

android google-maps gps

I'm working on an android app for tracking user's current location(using GPS) and make route on google maps when the location changes.