DHuckaby/Prime — Issue #1: RemoteImageView - setImageBitmap excessive posting bug
Author: DHuckaby
Created: 2012-03-04 01:49:35+00:00
State: open

Because we are posting memory held bitmaps directly on the UI Thread we can see an apparent problem when we are loading lots of images at once, for example in the GridView example viewed on a 10.1 tablet. Because each setImageBitmap eventually calls requestLayout on the framework end this can cause lots of problems while scrolling. I have found that if we post our method requests to the internal message queue the problem is reduced because the layout passes are combined but then we do not get the smooth loading that calling directly on the UI Thread gives us. I need to find a balance between the two methods and I have not currently found one that works perfectly in all cases. I either need to perfect my load managing method or come up with another solution.