downloaded png image with transparent background shows with black background

In my android application I downloaded some png image and write them in sd card. when I show them in image view they are showing with black background. the original images have transparent background. How I can keep the background transparent. Please help me. I use PNG format to compress and write it to sd card


Set The View Background as

R.color.transparent

or in xml like

android:background="@android:color/transparent"

Edited :

Thanks for reply. yes I did this. I did just now One more thing, I set canvas color android.R.color.transparent and it worked

链接地址: http://www.djcxy.com/p/74494.html

上一篇: 线程Web服务调用

下一篇: 下载png图像与透明背景显示黑色背景