我使用phonegap为iOS和Android构建我的应用程序 . 但Android中的Splash Screen有一点问题 . 它总是使用ldpi图像,虽然我在正确的文件夹中添加了不同版本的图像 . 当我在Samsung GT 2 10.1上启动应用程序时,会显示最小的图像,但会缩放到全屏 . 该应用仅支持横向 . 我使用了以下尺寸:
-
ldpi:320x200(在res / drawable-ldpi中)
-
mdpi:480x320(在res / drawable-mdpi中)
-
hdpi:800x480(在res / drawable-hdpi中)
-
xhdpi:1280x720(在res / drawable-xhdpi中)
在APPNAME.java文件中,我将以下代码放入onCreate()函数中:
super.setIntegerProperty("splashscreen", R.drawable.splash);
super.loadUrl(Config.getStartUrl(), 3000);
有任何想法吗?