- 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.
推薦閱讀
- Apache ZooKeeper Essentials
- Java EE 6 企業級應用開發教程
- 企業級Java EE架構設計精深實踐
- Oracle Database In-Memory(架構與實踐)
- Production Ready OpenStack:Recipes for Successful Environments
- Visual Basic程序設計實踐教程
- Protocol-Oriented Programming with Swift
- HTML5與CSS3基礎教程(第8版)
- Unity 2018 Shaders and Effects Cookbook
- C# Multithreaded and Parallel Programming
- 深度學習原理與PyTorch實戰(第2版)
- Getting Started with Python
- Emotional Intelligence for IT Professionals
- Appcelerator Titanium:Patterns and Best Practices
- Modernizing Legacy Applications in PHP