Android Question File png color

Star-Dust

Expert
Licensed User
Longtime User
Metti una camicia
I have a png whose main color is blue; displayed in an ImageView, it is predominantly gray.

I suppose this is due to the image file.


What to do?
If you have gray instead of blue ... put a dark tie there is the same good :p

Have you checked the PGN file if it is 8/16/24/32 bit? If you use transparencies?
If it uses transparencies, the context can have a great influence, that is the underlying color.
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User

Attachments

  • png color.gif
    png color.gif
    477.5 KB · Views: 180
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
I tried your code, it works properly for me.

Can it be a problem with your device? Are you color-blind?
 
Upvote 0
Top