Ionic3 啟動頁以及應用圖標


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

    ionic cordova resources android  

    ionic cordova resources ios

     

    圖片規格: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.

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

     

     

     

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

  4. 結束,運行下看看

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

 

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM