Not all devices use 24-bit color buffers. Some are 16-bit, and you might want to adjust the colors accordingly. 27.04.2011 0:48 пользователь "Mark Wyszomierski" <[email protected]> написал: > I've seen render issues like this. I think one example was putting a > png with a flat color next to a view with its background color > specified with the same hex value. They won't match. It makes it > really difficult to make portions of your layout blend together. > Example: > > <ImageView > android:src="@drawable/flat_grey_ffebebeb_png" /> > > <LinearLayout > android:background="ffebebeb" /> > > I'm sure the png I created has the same hex value as the manually > specified background value. Not sure why they don't match when you > run, but, that's what it is. > > Mark > > On Apr 18, 11:48 am, Andrew Huang <[email protected]> wrote: >> Specify a RGB, i.e, <color name="test_color">#ff292728</color>. >> Use the a Color Meter tool on Windows or Mac to sample the color in >> the Layout Preview screen. You'll see that it renders the correct >> value of 292728. >> >> Sampling the same color in the emulator would return a different >> value, #282329. >> >> This is causing us some serious problems with our graphics (i.e. >> images are not correctly blending with the background), so we would >> like to understand what's going on. My searches have turned up nothing >> so far. If anyone has a deeper understanding of how colors are render, >> we would greatly appreciate the help. > > -- > 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
-- 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

