views:

480

answers:

1

Hi,

I have got another mysterious issue. So, I am setting a background image for LinearLayout. This image contains gradient. Don't know why, but after I launch application the image appears to consist of several parts that actually form "smooth transition" of gradient, and that's why it seems that background image is not a gradient.

Could you please advice how to fix this issue?

Thanks.

+1  A: 

The emulator and many Android phones use a 16bit color palette. 65536 colors may not be enough to smoothly display your gradient.

Rexxars
This resolved my issue. I have updated background's image color palette and everything works :). Thanks.
Lyubomyr Dutko