0

Something I have done:

1.set the theme of the main activity

android:theme="@android:style/Theme.Wallpaper.NoTitleBar"

2.set the background of the webview created by phoneGap

appView.setBackgroundColor(Color.TRANSPARENT);

3.set the background of the body and html tag

html,
body{
    background-color: transparent;
}

But, my app still has a black background, why ???

zhouqicf
  • 29
  • 5

1 Answers1

2
@Override
public void onCreate(Bundle savedInstanceState)
{   
    super.setIntegerProperty("backgroundColor", Color.TRANSPARENT);
    ...
}
zhouqicf
  • 29
  • 5