Hi,

I am trying to set an Image on an ImageView when the scrolling of a
Gallery is complete. Currently my code looks like this ->

myGallery.setOnItemSelectedListener(new OnItemSelectedListener() {

                        @Override
                        public void onItemSelected(AdapterView<?> parent, View 
view,
                                        int position, long id) {

                                setImage(imageList[position]);
                        }
                });

public void setImage(int rscrId) {
                // I am setting the current Image from the imageList to a Image 
view
over here
        }

the problem I am facing is that the Image in the Image view keeps
changing continuously as long as the gallery is scrolling when I do a
flick. BUT I want to set the image i.e. call the "setImage()" only
when the scrolling stops.

Any help would be highly appreciated.

Thanx in advance :)

saurabh.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to