Android colors not displaying properly in emulator or device

I am trying to set the background of a RelativeLayout to a specific color. However, the color displayed by the emulator and the device turns off quite a bit.

For example,

<RelativeLayout
    android:background="#e1e5e8"
    android:layout_width="wrap_content"
    android:layout_height="85px">

      

#e1e5e8

- beautiful silver color.

However, when I view this layout in the emulator, the color I return (using xScope on Snow Leopard to get the pixel values) #e7e7ef

that looks a little purple.

Looking at the view on the G1 also looks a bit of what I want. If I take a screenshot of the G1 with the debugger and examine the pixels, then so are they #e7e7ef

.

What gives? It seems like it should be more than just a gamma problem, no?

+2


source to share


1 answer


Since the monitor on your Mac and the device display is different, it really expected the colors to be slightly off. Since I don't know how to calibrate your phone, I say that you can try to calibrate the display on your Mac to make it look like the device. Then of course the G1 display and the MyTouch display, and any other display will be different, so I'm wondering if you even need to worry



0


source







All Articles