diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-09-20 21:02:14 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-09-20 21:02:14 +0000 |
commit | 0ea7b4f80a6589af5a590495123424690c4de4f1 (patch) | |
tree | e714402792ff0c8a8cfd6e73b53711566a647f35 /app/src | |
parent | 3e4068442f1e78e76770b18427ed266a392fb896 (diff) | |
download | infinity-for-reddit-0ea7b4f80a6589af5a590495123424690c4de4f1.tar infinity-for-reddit-0ea7b4f80a6589af5a590495123424690c4de4f1.tar.gz infinity-for-reddit-0ea7b4f80a6589af5a590495123424690c4de4f1.tar.bz2 infinity-for-reddit-0ea7b4f80a6589af5a590495123424690c4de4f1.tar.lz infinity-for-reddit-0ea7b4f80a6589af5a590495123424690c4de4f1.tar.xz infinity-for-reddit-0ea7b4f80a6589af5a590495123424690c4de4f1.tar.zst infinity-for-reddit-0ea7b4f80a6589af5a590495123424690c4de4f1.zip |
New splash screen.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java | 3 | ||||
-rw-r--r-- | app/src/main/res/drawable-night-xxxhdpi/splash_branding.png | bin | 0 -> 38940 bytes | |||
-rw-r--r-- | app/src/main/res/drawable-xxxhdpi/splash_branding.png | bin | 0 -> 31997 bytes | |||
-rw-r--r-- | app/src/main/res/drawable/splash_screen.xml | 6 | ||||
-rw-r--r-- | app/src/main/res/values-night-v31/styles.xml | 12 | ||||
-rw-r--r-- | app/src/main/res/values-v31/styles.xml | 12 |
6 files changed, 33 insertions, 0 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java index 6ce906da..df9274f5 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java @@ -33,6 +33,7 @@ import androidx.appcompat.app.AppCompatDelegate; import androidx.coordinatorlayout.widget.CoordinatorLayout; import androidx.core.app.ActivityCompat; import androidx.core.content.ContextCompat; +import androidx.core.splashscreen.SplashScreen; import androidx.drawerlayout.widget.DrawerLayout; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentActivity; @@ -236,6 +237,8 @@ public class MainActivity extends BaseActivity implements SortTypeSelectionCallb @Override protected void onCreate(Bundle savedInstanceState) { + SplashScreen.installSplashScreen(this); + ((Infinity) getApplication()).getAppComponent().inject(this); setTheme(R.style.AppTheme_NoActionBarWithTransparentStatusBar); diff --git a/app/src/main/res/drawable-night-xxxhdpi/splash_branding.png b/app/src/main/res/drawable-night-xxxhdpi/splash_branding.png Binary files differnew file mode 100644 index 00000000..ff0c0130 --- /dev/null +++ b/app/src/main/res/drawable-night-xxxhdpi/splash_branding.png diff --git a/app/src/main/res/drawable-xxxhdpi/splash_branding.png b/app/src/main/res/drawable-xxxhdpi/splash_branding.png Binary files differnew file mode 100644 index 00000000..ff7afa74 --- /dev/null +++ b/app/src/main/res/drawable-xxxhdpi/splash_branding.png diff --git a/app/src/main/res/drawable/splash_screen.xml b/app/src/main/res/drawable/splash_screen.xml index c3ccc627..863217e5 100644 --- a/app/src/main/res/drawable/splash_screen.xml +++ b/app/src/main/res/drawable/splash_screen.xml @@ -9,4 +9,10 @@ android:gravity="center" /> </item> + <item android:bottom="100dp"> + <bitmap + android:gravity="bottom" + android:src="@drawable/splash_branding"/> + </item> + </layer-list>
\ No newline at end of file diff --git a/app/src/main/res/values-night-v31/styles.xml b/app/src/main/res/values-night-v31/styles.xml new file mode 100644 index 00000000..985844bd --- /dev/null +++ b/app/src/main/res/values-night-v31/styles.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <style name="AppTheme.Launcher" parent="Theme.SplashScreen"> + <item name="windowSplashScreenBackground">#000000</item> + <item name="windowSplashScreenAnimatedIcon">@mipmap/ic_launcher_round</item> + <item name="android:windowSplashScreenBrandingImage">@drawable/splash_branding</item> + <item name="postSplashScreenTheme">@style/AppTheme.NoActionBarWithTransparentStatusBar</item> + <item name="android:statusBarColor">#000000</item> + <item name="android:navigationBarColor">#000000</item> + <item name="android:windowLightStatusBar">false</item> + </style> +</resources>
\ No newline at end of file diff --git a/app/src/main/res/values-v31/styles.xml b/app/src/main/res/values-v31/styles.xml new file mode 100644 index 00000000..b7ec1b10 --- /dev/null +++ b/app/src/main/res/values-v31/styles.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <style name="AppTheme.Launcher" parent="Theme.SplashScreen"> + <item name="windowSplashScreenBackground">#FFFFFF</item> + <item name="windowSplashScreenAnimatedIcon">@mipmap/ic_launcher_round</item> + <item name="android:windowSplashScreenBrandingImage">@drawable/splash_branding</item> + <item name="postSplashScreenTheme">@style/AppTheme.NoActionBarWithTransparentStatusBar</item> + <item name="android:statusBarColor">#FFFFFF</item> + <item name="android:navigationBarColor">#FFFFFF</item> + <item name="android:windowLightStatusBar">true</item> + </style> +</resources>
\ No newline at end of file |