If I have a view with a transparent background, and I do bitmap = view.getDrawingCache(); , This bitmap is unfortunately no more transparent . The background is set to black.
I even tried
view.setDrawingCacheBackgroundColor(Color.TRANSPARENT);
without success.
Actually this method allows you to set the background color without alpha support, Color.TRANSPARENT , which 0x00000000 is actually black, if you don't need the alpha part ... If I use Color.RED , the background is really very red.
Any idea to make this work? Is this a limitation of the current Android API? Is it possible to use draw () instead? but is it less indicative that this view.getDrawingCache() I suppose (without a cache)?
thanks
source share