diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-09-03 06:37:20 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-09-03 06:37:20 +0000 |
commit | 79726b9a08d8b55f6965e2336857e1587bf1795c (patch) | |
tree | 14a9eaa5b83aec1af97012d754a8d7d29e2d8693 /app/src/main/res | |
parent | 870b21717403fc5a9304183816d0c9cef9f73d4d (diff) | |
download | infinity-for-reddit-79726b9a08d8b55f6965e2336857e1587bf1795c.tar infinity-for-reddit-79726b9a08d8b55f6965e2336857e1587bf1795c.tar.gz infinity-for-reddit-79726b9a08d8b55f6965e2336857e1587bf1795c.tar.bz2 infinity-for-reddit-79726b9a08d8b55f6965e2336857e1587bf1795c.tar.lz infinity-for-reddit-79726b9a08d8b55f6965e2336857e1587bf1795c.tar.xz infinity-for-reddit-79726b9a08d8b55f6965e2336857e1587bf1795c.tar.zst infinity-for-reddit-79726b9a08d8b55f6965e2336857e1587bf1795c.zip |
Display a splash screen when the app starts.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/drawable-hdpi/splash_icon.png | bin | 0 -> 10148 bytes | |||
-rw-r--r-- | app/src/main/res/drawable-mdpi/splash_icon.png | bin | 0 -> 6472 bytes | |||
-rw-r--r-- | app/src/main/res/drawable-xhdpi/splash_icon.png | bin | 0 -> 14868 bytes | |||
-rw-r--r-- | app/src/main/res/drawable-xxhdpi/splash_icon.png | bin | 0 -> 23498 bytes | |||
-rw-r--r-- | app/src/main/res/drawable-xxxhdpi/splash_icon.png | bin | 0 -> 32987 bytes | |||
-rw-r--r-- | app/src/main/res/drawable/splash_icon.png | bin | 0 -> 6472 bytes | |||
-rw-r--r-- | app/src/main/res/drawable/splash_screen.xml | 12 | ||||
-rw-r--r-- | app/src/main/res/values-night-v27/styles.xml | 8 | ||||
-rw-r--r-- | app/src/main/res/values-v27/styles.xml | 10 | ||||
-rw-r--r-- | app/src/main/res/values/styles.xml | 4 |
10 files changed, 34 insertions, 0 deletions
diff --git a/app/src/main/res/drawable-hdpi/splash_icon.png b/app/src/main/res/drawable-hdpi/splash_icon.png Binary files differnew file mode 100644 index 00000000..1cb4280e --- /dev/null +++ b/app/src/main/res/drawable-hdpi/splash_icon.png diff --git a/app/src/main/res/drawable-mdpi/splash_icon.png b/app/src/main/res/drawable-mdpi/splash_icon.png Binary files differnew file mode 100644 index 00000000..637d7c35 --- /dev/null +++ b/app/src/main/res/drawable-mdpi/splash_icon.png diff --git a/app/src/main/res/drawable-xhdpi/splash_icon.png b/app/src/main/res/drawable-xhdpi/splash_icon.png Binary files differnew file mode 100644 index 00000000..3d41cc71 --- /dev/null +++ b/app/src/main/res/drawable-xhdpi/splash_icon.png diff --git a/app/src/main/res/drawable-xxhdpi/splash_icon.png b/app/src/main/res/drawable-xxhdpi/splash_icon.png Binary files differnew file mode 100644 index 00000000..643d5f55 --- /dev/null +++ b/app/src/main/res/drawable-xxhdpi/splash_icon.png diff --git a/app/src/main/res/drawable-xxxhdpi/splash_icon.png b/app/src/main/res/drawable-xxxhdpi/splash_icon.png Binary files differnew file mode 100644 index 00000000..14da901c --- /dev/null +++ b/app/src/main/res/drawable-xxxhdpi/splash_icon.png diff --git a/app/src/main/res/drawable/splash_icon.png b/app/src/main/res/drawable/splash_icon.png Binary files differnew file mode 100644 index 00000000..637d7c35 --- /dev/null +++ b/app/src/main/res/drawable/splash_icon.png diff --git a/app/src/main/res/drawable/splash_screen.xml b/app/src/main/res/drawable/splash_screen.xml new file mode 100644 index 00000000..c3ccc627 --- /dev/null +++ b/app/src/main/res/drawable/splash_screen.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:opacity="opaque"> + + <item android:drawable="@color/backgroundColor" /> + + <item> + <bitmap + android:src="@drawable/splash_icon" + android:gravity="center" /> + </item> + +</layer-list>
\ No newline at end of file diff --git a/app/src/main/res/values-night-v27/styles.xml b/app/src/main/res/values-night-v27/styles.xml new file mode 100644 index 00000000..275f4057 --- /dev/null +++ b/app/src/main/res/values-night-v27/styles.xml @@ -0,0 +1,8 @@ +<resources> + + <style name="AppTheme.Launcher" parent="@style/AppTheme.NoActionBarWithTransparentStatusBar"> + <item name="android:windowBackground">@drawable/splash_screen</item> + <item name="android:navigationBarColor">@color/navBarColor</item> + </style> + +</resources> diff --git a/app/src/main/res/values-v27/styles.xml b/app/src/main/res/values-v27/styles.xml new file mode 100644 index 00000000..c354ca2c --- /dev/null +++ b/app/src/main/res/values-v27/styles.xml @@ -0,0 +1,10 @@ +<resources> + + <style name="AppTheme.Launcher" parent="@style/AppTheme.NoActionBarWithTransparentStatusBar"> + <item name="android:windowBackground">@drawable/splash_screen</item> + <item name="android:navigationBarColor">@color/navBarColor</item> + <item name="android:windowLightStatusBar">true</item> + <item name="android:windowLightNavigationBar">true</item> + </style> + +</resources> diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 03c4361a..e4119c67 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -10,6 +10,10 @@ <item name="android:textColorPrimary">@android:color/white</item> </style> + <style name="AppTheme.Launcher" parent="@style/AppTheme.NoActionBarWithTransparentStatusBar"> + <item name="android:windowBackground">@drawable/splash_screen</item> + </style> + <style name="AppTheme.NoActionBar"> <item name="windowActionBar">false</item> <item name="windowNoTitle">true</item> |