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?

Thanks

On Thu, Sep 16, 2010 at 9:59 AM, Mark Murphy <mmur...@commonsware.com>wrote:

> Might be an alpha channel difference.
>
> On Thu, Sep 16, 2010 at 9:51 AM, Mark Wyszomierski <mar...@gmail.com>
> wrote:
> > Hi,
> >
> > I have a 9 png which is used as the background of a view, the
> > stretchable region has a color of:
> >
> >   #ebebeb
> >
> > I have a view next to it, and I've set its background color like so:
> >
> >  <LinearLayout
> >       ....
> >       android:background="#ebebeb" >
> >
> > when the two views are beside one another, you can clearly tell that
> > the colors are not the same, they're different shades of grey. I'm
> > seeing this on the emulators, haven't had a chance to try it on a
> > device. Is this expected, or is there something I'm doing wrong in the
> > color declaration?
> >
> > Thanks
> >
> > --
> > 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
> >
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> --
> 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