Thursday, December 13, 2012

Re: [android-developers] Better view recycling like the Google Play App

I was able to get everything working much better. In the end, it came down to two things:
  1. Caching the result of the bitmaps at nearly the size used
  2. Decoding the bitmap using RGB_565 instead of ARGB_8888
This combined with https://github.com/nostra13/Android-Universal-Image-Loader seemed to do the trick.

Nick

On Thursday, December 13, 2012 1:34:40 PM UTC-6, Kristopher Micinski wrote:
You've seen the "efficient adapter" sample in the API demos...?

kris

On Wed, Dec 12, 2012 at 11:47 PM, Nicholas Campion <cam...@gmail.com> wrote:
> I'm wondering if anyone could give me ideas about how the Google Play app
> implements its list of apps (e.g. the search results page). I'm specifically
> interested in how it handles the apps icon because, it appears to be lazy
> loaded (flinging down the list will show a placeholder) but it seems to be
> able to instantly show (read: never see the placeholder) the icon when you
> scroll the app list in the other direction. My experience has been that when
> rebuilding using a recycled view, there is lag when 'repopulating' the
> ImageView as it displays the placeholder image and then the desired bitmap
> when ready.
>
> I have implemented the following:
>
> In memory and on disk cache
> Sub-sampling of images
> View recycling
>
> I still get this clunky experience that, when a recycled view is used and
> the bitmap must be loaded, even from memory, the app shows the placeholder
> image. Is the issue just with GridView or is there something else I should
> look at?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-d...@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

No comments:

Post a Comment