1

I got a big problem, I used Lazy load of images in ListView to implement lazy loading on a base adapter on a galery that displays views with some text and a image. The gallery is paging enabled and it has the fling system disabled.

@Override
public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX,
        float distanceY) {
    // TODO Auto-generated method stub
    return false;
}

If I start scrolling and the next view has a image in it the gallery will reset itself when the image loads (it will snap/page to the view witch occupies the most of the screen). The gallery is unusable, you have to fling pretty hard so that you get to the next view before the image loads and the reset happens. I've implemented a button system to switch to the next view for now but I need to fix this fast.

Cœur
  • 37,241
  • 25
  • 195
  • 267
obogz_mobile
  • 305
  • 1
  • 11

1 Answers1

1

See this question: Weird animation on Gallery when a invalidate is requested from it's children

What we did was cache images and load them if available, if not then load them with an AsyncTask. But if that does not work for you, a solution from that question may.

Community
  • 1
  • 1
Don
  • 3,654
  • 1
  • 26
  • 47