Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Create Icon & Splash Screen

$
0
0
  1. you must add platform in your project use ionic platform add android or ionic platform add ios
  2. then run this command ionic resource --icon and or ionic resource --splash
  3. Next step, put your icon file on "resources/android/icon/" and for splashscreen in "resources/android/splash/"
  4. Note : check your config.xml. see code bellow :
    <platform name="android">
    <icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
    <icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
    <icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
    <icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
    <icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
    <icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
    <splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
    <splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
    <splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
    <splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
    </platform>

there is file names that executed by ionic for generate icons and splashscreen. So, make sure that your file name is same with it. for ldpi, mdpi, hdpi, xhdpi, etc, it's just a dimension of the image.

then build your project into apk file, hope this help you. and i'm sorry for my bad english.


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>