Android 如何制作PhoneGap应用程序&x27;s背景透明,显示当前系统壁纸
我做了一些事: 1.确定主要活动的主题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; } 但是,我的应用程序仍然有黑色背景,为什么?在我可以粘贴的地方
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);
...
}