Hi Dianne,

I've just spent some time looking at the cache code in View, I was trying to 
force it to use a higher color depth but as you point out the screen may be 
16bit anyway so many thanks I'll just switch to F2F2F2!

I remember reading about some Window colorspace changes on the blog, but I 
forget which platform version.  A quick test:

  getWindow().setFormat(PixelFormat.RGBA_8888);

sees the problem vanish, but I'll not be using that of course, and just stick 
to F2F2F2.

Cheers,
Richard

On 19 Apr 2011, at 17:44, Dianne Hackborn wrote:

> The cache is often 16bpp.  Pick a color that can be rendered well at 16bpp, 
> such as #f2f2f2.
> 
> You want to do this anyway because if your app is running on a 16bpp screen 
> you will also get these kinds of artifacts.
> 
> On Tue, Apr 19, 2011 at 9:20 AM, Richard Leggett <richard.legg...@gmail.com> 
> wrote:
> Hi all,
> 
> I think I could be out of luck with this one, but does anyone know
> whether ListView does anything to colors when using scrolling cache?
> 
> I have a ListView with a background color of #F3F3F3, opaque light
> grey. When scrolling the list, the grey turns a grey-pink and usually
> resets to grey again when at rest.
> 
> Setting scrollingCache to false prevents the pink from appearing, but
> I'm worried about the performance hit.
> 
> Setting the cacheColorHint to transparent has no effect.
> 
> BitmapDrawable and ColorDrawables behave the same.
> 
> As it happens the designer has used a lot of F3F3F3 grey in this app,
> so I'm seeing quite a lot of pink (Nexus One, 2.3.3).
> 
> Here's hoping I missed something.
> 
> Regards,
> Richard
> 
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> 
> 
> 
> -- 
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
> 
> Note: please don't send private questions to me, as I don't have time to 
> provide private support, and so won't reply to such e-mails.  All such 
> questions should be posted on public forums, where I and others can see and 
> answer them.
> 
> 
> -- 
> 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+unsubscr...@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to