iOS and Android handles images differently. iOS use 1x..3x format and Android uses xxhdpi, hdpi format and so on. To overcome those quirks and seamlessly handle image handling for both OS, Smartface has auto image generation feature embedded in the Cloud IDE.
Create automated folder on
/images directory if it doesn't exist
Upload your highest resolution image to
/images/automated folder. It will compress and resize the image accordingly.
Right click on the image
Select Generate auto-resized images
Images for different resolutions for both platforms will be generated.
You can use generated images on your project, like
images://yourimage.png. For further information about how to use images, refer the document below:
Name of launch image must be either
If LaunchImage.png is being used, then launch images for both platforms are generated
LaunchImage.ios.png or LaunchImage.android.png is being used then launch images for that specific platform are generated
For Launch image, to handle different screen sizes better on Android, the developer should create a 9-patch image. The steps are explained below.
Exact same rules apply for generating application icons
Name of the app icon must be either