Browse Source

Fix adaptive icon

master
Skylar Ittner 2 years ago
parent
commit
cc8857c9f6
  1. 2
      config.xml
  2. 5
      res/android/mipmap-anydpi-v26/ic_launcher.xml

2
config.xml

@ -19,6 +19,7 @@
<preference name="ShowSplashScreenSpinner" value="false"/>
<platform name="android">
<preference name="android-minSdkVersion" value="21" />
<preference name="HeaderColor" value="#324150"/>
<preference name="StatusBarBackgroundColor" value=""/>
<allow-intent href="market:*"/>
@ -28,6 +29,7 @@
<icon background="res/android/mipmap-xhdpi/ic_launcher_background.png" density="xhdpi" foreground="res/android/mipmap-xhdpi/ic_launcher_foreground.png" src="res/android/mipmap-xhdpi/ic_launcher.png" />
<icon background="res/android/mipmap-xxhdpi/ic_launcher_background.png" density="xxhdpi" foreground="res/android/mipmap-xxhdpi/ic_launcher_foreground.png" src="res/android/mipmap-xxhdpi/ic_launcher.png" />
<icon background="res/android/mipmap-xxxhdpi/ic_launcher_background.png" density="xxxhdpi" foreground="res/android/mipmap-xxxhdpi/ic_launcher_foreground.png" src="res/android/mipmap-xxxhdpi/ic_launcher.png" />
<resource-file src="res/android/mipmap-anydpi-v26/ic_launcher.xml" target="app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml" />
<splash src="res/android/drawable-land-hdpi/screen.png" density="land-hdpi"/>
<splash src="res/android/drawable-land-ldpi/screen.png" density="land-ldpi"/>

5
res/android/mipmap-anydpi-v26/ic_launcher.xml

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
Loading…
Cancel
Save