One thing that could be happening is if your image is entirely opaque then
it may be loaded as 16bpp for memory/performance reasons.

2010/9/18 Mark Wyszomierski <mar...@gmail.com>

> Hi Kostya, I'll probably end up doing that, I was just curious as to what
> is going on with this since everything seems to look ok - I'll make that
> test app and post back if I find anything,
>
> Thanks
>
> 2010/9/18 Kostya Vasilyev <kmans...@gmail.com>
>
> Perhaps you can use a small PNG drawable for the view where you currently
>> specify a color constant?
>>
>> --
>> Kostya Vasilyev -- http://kmansoft.wordpress.com
>>
>> 18.09.2010 19:35 пользователь "Mark Wyszomierski" <mar...@gmail.com>
>> написал:
>>
>>
>> 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,...
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" g...
>>
>>  --
>> 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<android-developers%2bunsubscr...@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

Reply via email to