- Hybrid Mobile Development with Ionic
- Gaurav Saini
- 159字
- 2021-07-02 23:53:51
Platform specific resources
Ionic provides support for building icons and splash screen resources for various platforms and devices. For building resources, we just need to place the source image inside the resources folder with the name icon.png and splash.png. This way you will get the extracted icons and splash screens for each platform, such as a Native rounded corners icon for iOS, and transparent background for an Android icon.
To summarize the steps:
- Add files to the resources folder naming icon.png and splash.png. (.psd and .ai can also be used).
- Make sure the minimum size requirements for icon are 192x192 px and for splash 2208x2208 px.
- Run the ionic resources command from the CLI.
Different platforms have different ways of styling icons, for example, iOS will apply its rounded corners, that is why we recommend the Ionic source file to be without rounded corners. Also, using the ionic resources command will require at least Cordova 3.6 or more.
推薦閱讀
- 基于粒計算模型的圖像處理
- Java范例大全
- Fundamentals of Linux
- 劍指JVM:虛擬機實踐與性能調優
- 人臉識別原理及算法:動態人臉識別系統研究
- Internet of Things with the Arduino Yún
- PLC編程及應用實戰
- R Data Analysis Cookbook(Second Edition)
- Python Data Structures and Algorithms
- Spring 5 Design Patterns
- 超簡單:Photoshop+JavaScript+Python智能修圖與圖像自動化處理
- PowerDesigner 16 從入門到精通
- 絕密原型檔案:看看專業產品經理的原型是什么樣
- Spring Boot 3:入門與應用實戰
- 樹莓派開發從零開始學:超好玩的智能小硬件制作書