I show the external image in the image view, loading it like this:
bitmap = BitmapFactory.decodeStream((InputStream)new URL(url).getContent());
Then set this bitmap to ImageView
as follows:
imageView.setImageBitmap(bitmap);
This works well, except that one of the images is PNG, and I lose the transparent background when using BitmapFactory
.
Can someone tell me how can I keep a transparent background?
source share