Android Imageview Png Transparency
The problem is that for some reason android studio makes the logo s background white even though the original image has a transparent background.
Android imageview png transparency. Asked sep 29 10 at 2 30. Share improve this question follow edited dec 14 17 at 3 20. Add a comment 3 answers active oldest votes. Here s an image to show you the.
The file s transparency is properly set. Android png imageview drawable. This setting it grey works perfectly well until i actually call the png file. A logo with a transparent background to be exact.
You must set the background color of the png images to transparent. When you set imageview1 color colors transparent the system sets the background property to a colordrawable. Even though it s a transparent png image android studio makes its background white. I have saved a png image into the drawable folder in android studio.
Hey there i have an image above which i want to place another image. Some opacity code you can use in android. If you use a drawable xml image you can make it transparent as shown in the picture below or you can use a color code. Color name black 99000000 color if you want to add 20 or 30 transparency you should pre pend two more characters to the hexadecimal code like cc.
Sheehan alam sheehan alam. 55 4k 119 119 gold badges 345 345 silver badges 545 545 bronze badges. 12 4k 4 4 gold badges 31 31 silver badges 62 62 bronze badges. I m also trying to change the imageview s background color to say grey.
Image in android studio. When you set imageview1 bitmap homeicon the system sets the background property to a bitmapdrawable replacing the previous background. Hi i m trying to set an imageview to show a transparent png. This image is confirmed to have an alpha channel.