Yeah I guess that's why I'm confused, the alpha of my png is 100%. So when I
set the background color in the xml file to explicitly have alpha = ff, then
the layout editor shows the two colors matching. It's just that when I run
the app, the emulator (and n1 at least) show the background color (not the
png) as the different grey, same as when I was previously *not* setting the
alpha = ff. To sum it up:

   before:
      background="#ebebeb"
      drawable in photoshop (100% alpha, ebebeb)
      layout editor and emulator show background as a purplish-grey.

   now
      background="#ffebebeb"
      drawable (unchanged from before)
      layout editor shows background now matching my drawable,
      but at runtime it looks like the purplish grey from before.

I'm not modifying the color at runtime (which could explain the difference),
I'll make a separate test app to try and demo it,

Thanks

On Sat, Sep 18, 2010 at 11:21 AM, Mark Murphy <mmur...@commonsware.com>wrote:

> On Sat, Sep 18, 2010 at 11:17 AM, Mark Wyszomierski <mar...@gmail.com>
> wrote:
> > I'm not quite sure what's going on - if I specify the color in my layout
> xml
> > like so with alpha = FF:
> >    #ffebebeb
> > then at least in the layout editor it now matches the color of my png
> > (created in photoshop, with the same #ebebeb specification). When I run
> the
> > app though, the emulator is showing it as a different type of grey. Did I
> > miss what you meant by alpha channel difference, Mark?
>
> Well, you are halfway there.
>
> For starters, you need the alpha value of your background color to be
> the same as the alpha value of your PNG file. You know what the alpha
> value of your background color is, because you are setting it. Now,
> you need to determine the alpha value that Photoshop used with your
> PNG file.
>
> Also, if you choose a non-opaque (i.e., less than FF) alpha, things
> get more complicated, as you have to take into account the stuff the
> alpha channel is blending from behind the respective widgets.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
> Available!
>
> --
> 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<android-developers%2bunsubscr...@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