From 3b9a496690dd53d290ef9cd7ffab4eb8ea4f20c7 Mon Sep 17 00:00:00 2001 From: Craig Dunn Date: Fri, 22 Oct 2021 16:00:26 -0700 Subject: [PATCH] [photoeditor] splash screen --- PhotoEditor/app/src/main/AndroidManifest.xml | 9 ++++++++- .../wm_samples/photoeditor/SplashActivity.kt | 19 +++++++++++++++++++ .../res/drawable-sw720dp-2754x1800/splash.xml | 15 +++++++++++++++ .../splash.xml | 17 +++++++++++++++++ .../app/src/main/res/drawable/splash.xml | 16 ++++++++++++++++ .../app/src/main/res/drawable/splash_logo.xml | 6 ++++++ .../src/main/res/layout/activity_splash.xml | 9 +++++++++ .../app/src/main/res/values/styles.xml | 6 ++++++ 8 files changed, 96 insertions(+), 1 deletion(-) create mode 100644 PhotoEditor/app/src/main/java/com/microsoft/device/display/wm_samples/photoeditor/SplashActivity.kt create mode 100644 PhotoEditor/app/src/main/res/drawable-sw720dp-2754x1800/splash.xml create mode 100644 PhotoEditor/app/src/main/res/drawable-sw720dp-land-2754x1800/splash.xml create mode 100644 PhotoEditor/app/src/main/res/drawable/splash.xml create mode 100644 PhotoEditor/app/src/main/res/drawable/splash_logo.xml create mode 100644 PhotoEditor/app/src/main/res/layout/activity_splash.xml diff --git a/PhotoEditor/app/src/main/AndroidManifest.xml b/PhotoEditor/app/src/main/AndroidManifest.xml index 65b6f8b..3c7fc73 100644 --- a/PhotoEditor/app/src/main/AndroidManifest.xml +++ b/PhotoEditor/app/src/main/AndroidManifest.xml @@ -14,13 +14,20 @@ android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> - + + + diff --git a/PhotoEditor/app/src/main/java/com/microsoft/device/display/wm_samples/photoeditor/SplashActivity.kt b/PhotoEditor/app/src/main/java/com/microsoft/device/display/wm_samples/photoeditor/SplashActivity.kt new file mode 100644 index 0000000..0824603 --- /dev/null +++ b/PhotoEditor/app/src/main/java/com/microsoft/device/display/wm_samples/photoeditor/SplashActivity.kt @@ -0,0 +1,19 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */ + +package com.microsoft.device.display.wm_samples.photoeditor + +import android.content.Intent +import android.os.Bundle +import androidx.appcompat.app.AppCompatActivity + +class SplashActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_splash) + // move to the app straight away + startActivity(Intent(this, MainActivity::class.java)) + } +} diff --git a/PhotoEditor/app/src/main/res/drawable-sw720dp-2754x1800/splash.xml b/PhotoEditor/app/src/main/res/drawable-sw720dp-2754x1800/splash.xml new file mode 100644 index 0000000..00025c3 --- /dev/null +++ b/PhotoEditor/app/src/main/res/drawable-sw720dp-2754x1800/splash.xml @@ -0,0 +1,15 @@ + + + + + + /> + \ No newline at end of file diff --git a/PhotoEditor/app/src/main/res/drawable-sw720dp-land-2754x1800/splash.xml b/PhotoEditor/app/src/main/res/drawable-sw720dp-land-2754x1800/splash.xml new file mode 100644 index 0000000..01116b0 --- /dev/null +++ b/PhotoEditor/app/src/main/res/drawable-sw720dp-land-2754x1800/splash.xml @@ -0,0 +1,17 @@ + + + + + + /> + \ No newline at end of file diff --git a/PhotoEditor/app/src/main/res/drawable/splash.xml b/PhotoEditor/app/src/main/res/drawable/splash.xml new file mode 100644 index 0000000..0b54720 --- /dev/null +++ b/PhotoEditor/app/src/main/res/drawable/splash.xml @@ -0,0 +1,16 @@ + + + + + + /> + \ No newline at end of file diff --git a/PhotoEditor/app/src/main/res/drawable/splash_logo.xml b/PhotoEditor/app/src/main/res/drawable/splash_logo.xml new file mode 100644 index 0000000..96d34a3 --- /dev/null +++ b/PhotoEditor/app/src/main/res/drawable/splash_logo.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/PhotoEditor/app/src/main/res/layout/activity_splash.xml b/PhotoEditor/app/src/main/res/layout/activity_splash.xml new file mode 100644 index 0000000..17a6b8a --- /dev/null +++ b/PhotoEditor/app/src/main/res/layout/activity_splash.xml @@ -0,0 +1,9 @@ + + + + \ No newline at end of file diff --git a/PhotoEditor/app/src/main/res/values/styles.xml b/PhotoEditor/app/src/main/res/values/styles.xml index 98b9ab6..ea6d397 100644 --- a/PhotoEditor/app/src/main/res/values/styles.xml +++ b/PhotoEditor/app/src/main/res/values/styles.xml @@ -5,6 +5,12 @@ + + +