Ionic3 啓動頁以及應用圖標

  1. 將新的啓動頁和應用圖標圖片(最好是高清png)上傳到根目錄 resources
  2. 使用命令自動生成,經過CMD進入項目所在文件夾,分別執行

    ionic cordova resources android  android

    ionic cordova resources iosios

     

    圖片規格:The source image for icons should ideally be at least 1024x1024px and located at resources/icon.png. The source image for splash screens should ideally be at least 2732x2732px and located at resources/splash.png. If you used ionic start, there should already be default Ionic resources in the resources/ directory, which you can overwrite.ionic

    前置條件:This command uses Ionic servers, so we require you to be logged into your free Ionic account. Use ionic login to login.ide

     

     

     

  3. 檢查根目錄下config.xml
    配置項:
    SplashScreenDelay:單位毫秒,默認3秒,啓動頁隱藏事件

  4. 結束,運行下看看

參考:http://ionicframework.com/docs/cli/cordova/resources/ui

 

 

 

相關文章
相關標籤/搜索