From 73060bfc0059e2238897fb29ff9b24a53c5fa3fc Mon Sep 17 00:00:00 2001 From: RetrogisusDEV <99091223+RetrogisusDEV@users.noreply.github.com> Date: Sat, 4 Nov 2023 21:31:59 -0400 Subject: [PATCH] Adaptive launcher icon Existing icons are kept for API < 26. --- AndroidManifest.xml | 6 +++--- res/drawable/ic_launcher_background.xml | 4 ++++ res/drawable/ic_launcher_foreground.xml | 14 ++++++++++++++ res/mipmap-anydpi-v26/ic_launcher.xml | 5 +++++ .../ic_launcher.png | Bin .../ic_launcher.png | Bin .../ic_launcher.png | Bin .../ic_launcher.png | Bin .../ic_launcher.png | Bin 9 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 res/drawable/ic_launcher_background.xml create mode 100644 res/drawable/ic_launcher_foreground.xml create mode 100644 res/mipmap-anydpi-v26/ic_launcher.xml rename res/{drawable-hdpi => mipmap-hdpi}/ic_launcher.png (100%) rename res/{drawable-mdpi => mipmap-mdpi}/ic_launcher.png (100%) rename res/{drawable-xhdpi => mipmap-xhdpi}/ic_launcher.png (100%) rename res/{drawable-xxhdpi => mipmap-xxhdpi}/ic_launcher.png (100%) rename res/{drawable-xxxhdpi => mipmap-xxxhdpi}/ic_launcher.png (100%) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 4938399..a9bb792 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,19 +1,19 @@ - + - + - + diff --git a/res/drawable/ic_launcher_background.xml b/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..146896b --- /dev/null +++ b/res/drawable/ic_launcher_background.xml @@ -0,0 +1,4 @@ + + + + diff --git a/res/drawable/ic_launcher_foreground.xml b/res/drawable/ic_launcher_foreground.xml new file mode 100644 index 0000000..927626a --- /dev/null +++ b/res/drawable/ic_launcher_foreground.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/res/mipmap-anydpi-v26/ic_launcher.xml b/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..7e91a57 --- /dev/null +++ b/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/res/drawable-hdpi/ic_launcher.png b/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from res/drawable-hdpi/ic_launcher.png rename to res/mipmap-hdpi/ic_launcher.png diff --git a/res/drawable-mdpi/ic_launcher.png b/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from res/drawable-mdpi/ic_launcher.png rename to res/mipmap-mdpi/ic_launcher.png diff --git a/res/drawable-xhdpi/ic_launcher.png b/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from res/drawable-xhdpi/ic_launcher.png rename to res/mipmap-xhdpi/ic_launcher.png diff --git a/res/drawable-xxhdpi/ic_launcher.png b/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from res/drawable-xxhdpi/ic_launcher.png rename to res/mipmap-xxhdpi/ic_launcher.png diff --git a/res/drawable-xxxhdpi/ic_launcher.png b/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from res/drawable-xxxhdpi/ic_launcher.png rename to res/mipmap-xxxhdpi/ic_launcher.png