I created a simple icon 1024x1024 icon.png under resources/ :

Then I launch ionic resources, and all the icons I need are created in resources/android/icon/
My config.xml changes to this:
<platform name="android"> <icon src="resources/android/icon/drawable-ldpi-icon.png" density="ldpi"/> <icon src="resources/android/icon/drawable-mdpi-icon.png" density="mdpi"/> <icon src="resources/android/icon/drawable-hdpi-icon.png" density="hdpi"/> <icon src="resources/android/icon/drawable-xhdpi-icon.png" density="xhdpi"/> <icon src="resources/android/icon/drawable-xxhdpi-icon.png" density="xxhdpi"/> <icon src="resources/android/icon/drawable-xxxhdpi-icon.png" density="xxxhdpi"/> <splash src="resources/android/splash/drawable-port-ldpi-screen.png" density="port-ldpi"/> <splash src="resources/android/splash/drawable-port-mdpi-screen.png" density="port-mdpi"/> <splash src="resources/android/splash/drawable-port-hdpi-screen.png" density="port-hdpi"/> </platform> <icon src="resources/android/icon/drawable-xhdpi-icon.png"/>
Now, if I look at the application icon after installing it, it looks like the figure in the middle is larger and the ratio is not respected:

As you can see, the little red ball has become a huge ball, this is something that I do not understand, can someone explain this to me?
javascript android cordova ionic-framework ionic
sbaaaang
source share