I have a gallery of images, each with their own status. As I scroll
through this list, I am updating a button's image in a toolbar
separate from the gallery to correspond to that status..

My problem is, onItemSelected fires when the image is about 3/4 on
screen, this calls setImageResource on the button.. When this is
called the gallery "jumps" to the selected item in the list instead of
smoothly scrolling to it resulting in ugly UI use. If i remove the
setImageResource code it scrolls smooth without any jumps.

Curious if anyone knows what the problem is and how to fix it.


The on item selected code is simply

switch (img.status) {
                    case Image.STATUS_AVAILABLE:
 
mComboButton.setImageResource(R.drawable.ic_download);
                        break;

...etc.

}

Thanks for any input

-- 
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