From 3945e94632cdda9b6087d32e9bb37825b12a3684 Mon Sep 17 00:00:00 2001 From: S-H-Y-A <74596628+S-H-Y-A@users.noreply.github.com> Date: Fri, 1 Dec 2023 00:08:56 +0900 Subject: [PATCH 1/3] Add splashscreen --- AnkiDroid/src/main/AndroidManifest.xml | 2 +- .../src/main/res/drawable/launch_screen.xml | 21 +- .../src/main/res/drawable/splash_branding.xml | 13 + .../src/main/res/drawable/splash_icon.xml | 353 ++++++++++++++++++ .../res/drawable/splash_icon_adaptive.xml | 315 ++++++++++++++++ AnkiDroid/src/main/res/values-v31/styles.xml | 16 + 6 files changed, 709 insertions(+), 11 deletions(-) create mode 100644 AnkiDroid/src/main/res/drawable/splash_branding.xml create mode 100644 AnkiDroid/src/main/res/drawable/splash_icon.xml create mode 100644 AnkiDroid/src/main/res/drawable/splash_icon_adaptive.xml create mode 100644 AnkiDroid/src/main/res/values-v31/styles.xml diff --git a/AnkiDroid/src/main/AndroidManifest.xml b/AnkiDroid/src/main/AndroidManifest.xml index 964bd51b5bd6..0df77b15a3de 100644 --- a/AnkiDroid/src/main/AndroidManifest.xml +++ b/AnkiDroid/src/main/AndroidManifest.xml @@ -114,7 +114,7 @@ diff --git a/AnkiDroid/src/main/res/drawable/launch_screen.xml b/AnkiDroid/src/main/res/drawable/launch_screen.xml index 1857646f9a4a..c13dbe667d88 100644 --- a/AnkiDroid/src/main/res/drawable/launch_screen.xml +++ b/AnkiDroid/src/main/res/drawable/launch_screen.xml @@ -1,15 +1,16 @@ - - - + - - - - + diff --git a/AnkiDroid/src/main/res/drawable/splash_branding.xml b/AnkiDroid/src/main/res/drawable/splash_branding.xml new file mode 100644 index 000000000000..da5325e323eb --- /dev/null +++ b/AnkiDroid/src/main/res/drawable/splash_branding.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/AnkiDroid/src/main/res/drawable/splash_icon.xml b/AnkiDroid/src/main/res/drawable/splash_icon.xml new file mode 100644 index 000000000000..33441364277f --- /dev/null +++ b/AnkiDroid/src/main/res/drawable/splash_icon.xml @@ -0,0 +1,353 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/AnkiDroid/src/main/res/drawable/splash_icon_adaptive.xml b/AnkiDroid/src/main/res/drawable/splash_icon_adaptive.xml new file mode 100644 index 000000000000..7e48b3e09ccf --- /dev/null +++ b/AnkiDroid/src/main/res/drawable/splash_icon_adaptive.xml @@ -0,0 +1,315 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/AnkiDroid/src/main/res/values-v31/styles.xml b/AnkiDroid/src/main/res/values-v31/styles.xml new file mode 100644 index 000000000000..4bd2c892a71a --- /dev/null +++ b/AnkiDroid/src/main/res/values-v31/styles.xml @@ -0,0 +1,16 @@ + + + + + + From 40c3572932e8a665b1cdfc8ff396c0cf38716a83 Mon Sep 17 00:00:00 2001 From: S-H-Y-A <74596628+S-H-Y-A@users.noreply.github.com> Date: Fri, 1 Dec 2023 00:25:46 +0900 Subject: [PATCH 2/3] remove unused resources created on creating Splash screen --- .../res/drawable/splash_icon_adaptive.xml | 315 ------------------ AnkiDroid/src/main/res/values-v31/styles.xml | 7 - AnkiDroid/src/main/res/values/styles.xml | 5 - 3 files changed, 327 deletions(-) delete mode 100644 AnkiDroid/src/main/res/drawable/splash_icon_adaptive.xml diff --git a/AnkiDroid/src/main/res/drawable/splash_icon_adaptive.xml b/AnkiDroid/src/main/res/drawable/splash_icon_adaptive.xml deleted file mode 100644 index 7e48b3e09ccf..000000000000 --- a/AnkiDroid/src/main/res/drawable/splash_icon_adaptive.xml +++ /dev/null @@ -1,315 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/AnkiDroid/src/main/res/values-v31/styles.xml b/AnkiDroid/src/main/res/values-v31/styles.xml index 4bd2c892a71a..2a9fbcf99c84 100644 --- a/AnkiDroid/src/main/res/values-v31/styles.xml +++ b/AnkiDroid/src/main/res/values-v31/styles.xml @@ -6,11 +6,4 @@ 2500 @drawable/splash_branding - - diff --git a/AnkiDroid/src/main/res/values/styles.xml b/AnkiDroid/src/main/res/values/styles.xml index b82d285469ed..c8dd646643ce 100644 --- a/AnkiDroid/src/main/res/values/styles.xml +++ b/AnkiDroid/src/main/res/values/styles.xml @@ -5,11 +5,6 @@ @drawable/launch_screen - -