0

I want a WebView with a transparent background and a flash content. These two things work perfectly separatly but not together. So for flash i need android:hardwareAccelerated="true" but then the background won't be transparent. If i set android:hardwareAccelerated="false" the background will become pretty transparent but I won't see any flash content.

How can I solve that problem?

  • How are you setting the background transparent? – slayton Oct 17 '11 at 16:00
  • It works with `webView.setBackgroundColor(0);` and a transparent background by html.. –  Oct 17 '11 at 16:05
  • is that what you are doing, or does that fix the problem? If that fixes the problem then write it up as a solution and accept it so people in the future can use it – slayton Oct 17 '11 at 16:13
  • No that doesn't solve my problem: `android:hardwareAccelerated="true"` --> Flash works, but a white background; `android:hardwareAccelerated="false"` --> Flash doesn't work, but a transparent background –  Oct 17 '11 at 16:22

1 Answers1

0

Check out this similar question on stack overflow: Android WebView style background-color:transparent ignored on android 2.2 it appears to be a bug that has been reported

Community
  • 1
  • 1
slayton
  • 20,123
  • 10
  • 60
  • 89
  • Thanks.. That's very bad! Is there another way to get a flash content in my app? –  Oct 19 '11 at 07:18