Ah ok.  I'm using a vertical nine-patch gradient -- as it's part of a
theme, I don't think I'll be able to do it from code.

Anyway, I'll try it out tomorrow with a 2.0 emulator and see what
happens.


On Nov 2, 11:45 pm, webmonkey <[email protected]> wrote:
> I am running both in WCGA854 at 240dpi. I am drawing a horizontal
> gradient in code with dithering, and only the one in the 2.0 emulator
> has banding.
>
> On Nov 2, 10:32 pm, Christopher <[email protected]> wrote:
>
>
>
> > Hmm.  I was seeing this problem in a project targeted at SDK v4 (with
> > minVersion 3), running on a high density 1.6 emulator as described in
> > my first post.
>
> > What screen density and resolution are you running on both emulators,
> > or at least the 1.6 one that works fine?
>
> > Chris
>
> > On Nov 2, 8:33 pm, webmonkey <[email protected]> wrote:
>
> > > It seems to be an issue with 2.0
>
> > > If I draw a dithered gradient on a 1.6 emulator it looks fine, but if
> > > I use the same code to draw it on a 2.0 emulator it has banding.
>
> > > On Nov 2, 7:19 pm, Christopher <[email protected]> wrote:
>
> > > > Hi all,
>
> > > > I've been looking at some issues with the background of our
> > > > application, particularly on high-density devices (240 dpi, 480x854).
>
> > > > I managed to eliminate banding on existing devices (i.e. G1/G2, 160
> > > > dpi) by applying the android:dither="true" attribute to our nine-patch
> > > > image, which is a 1x480px PNG with no noise added.  Looks great.
>
> > > > However, if I use the same image on a higher resolution device, the
> > > > banding is pretty nasty looking.  Same happens regardless of whether I
> > > > use a shape+gradient, a noisy nine-patch PNG, or an android:dithered
> > > > nine-patch PNG -- even if I create an 854px-tall image.
>
> > > > Is the use of gradients going to become a problem on high screen
> > > > density devices, purely because of the display colour depth, or is
> > > > there any way to solve this?
>
> > > > Thanks,
> > > > Chris

-- 
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