Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/180.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何制作PhoneGap应用程序&x27;s背景透明,显示当前系统壁纸_Android_Cordova - Fatal编程技术网

Android 如何制作PhoneGap应用程序&x27;s背景透明,显示当前系统壁纸

Android 如何制作PhoneGap应用程序&x27;s背景透明,显示当前系统壁纸,android,cordova,Android,Cordova,我做了一些事: 1.确定主要活动的主题 android:theme="@android:style/Theme.Wallpaper.NoTitleBar" 2.设置phoneGap创建的webview的背景 appView.setBackgroundColor(Color.TRANSPARENT); 3.设置正文和html标记的背景 html, body{ background-color: transparent; } 但是,我的应用程序仍然有黑色背景,为什么?在我可以粘贴的地方

我做了一些事:

1.确定主要活动的主题

android:theme="@android:style/Theme.Wallpaper.NoTitleBar"
2.设置phoneGap创建的webview的背景

appView.setBackgroundColor(Color.TRANSPARENT);
3.设置正文和html标记的背景

html,
body{
    background-color: transparent;
}

但是,我的应用程序仍然有黑色背景,为什么?

在我可以粘贴的地方试试这个?
@Override
public void onCreate(Bundle savedInstanceState)
{   
    super.setIntegerProperty("backgroundColor", Color.TRANSPARENT);
    ...
}