Same problem here but I'm wanting to replace an image place holder
with one I load from the web.  Looks like when the image resource is
changed it invalidates the entire gallery causing all the views to be
recreated and then jump.  Hoping one of the android devs can help us
out.  Not sure if it would work to subclass the view type you need and
have the parent not be invalidated, or override the draw method some
how.


On Jan 13, 7:06 am, dymmeh <[email protected]> wrote:
> 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