Reputation: 6117
I'm using pngs created from Photoshop (ie gradients, buttons etc...) . They are blue in color but show up in Android with more purple tint to them. I tried putting the images in the raw folder no no avail & I tried:
@Override
public void onAttachedToWindow()
{
super.onAttachedToWindow();
Window window = getWindow();
// Eliminates color banding
window.setFormat(PixelFormat.RGBA_8888);
window.setDither(true);
}
This gets rid of banding in the gradients, but still does not show the true color of what I created on Photoshop. Is there any way to get it close?
Upvotes: 1
Views: 726
Reputation: 44919
Just a thought, but is it possible your desktop monitor isn't correctly calibrated? It seems much more likely that color calibration on Android is accurate given that the device makers have control over their screens.
Upvotes: 1