設置phonegap啓動界面圖片和圖標

啓動界面: android

 

將加載界面圖片(好比:bg.jpg)複製到 res/drawable下 xml

在src下的Activity的onCreate方法下。在loadUrl以前加上 圖片

super.setIntegerProperty("splashscreen", R.drawable.bg); 資源

 

R.drawable.bg  //這個說明是資源文件drawable下的文件名爲bg的資源(不寫後綴) it

 

 

設置桌面圖標: 方法

將圖標(icon.png)複製到res/drawable下 di

在AndroidManifest.xml下找到 文件

 android:icon="@drawable/ic_launcher" vi

修改成 co

 android:icon="@drawable/icon"

相關文章
相關標籤/搜索