mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-10-05 21:39:50 +02:00
Display a splash screen when the app starts.
This commit is contained in:
BIN
app/src/main/res/drawable-hdpi/splash_icon.png
Normal file
BIN
app/src/main/res/drawable-hdpi/splash_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.9 KiB |
BIN
app/src/main/res/drawable-mdpi/splash_icon.png
Normal file
BIN
app/src/main/res/drawable-mdpi/splash_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.3 KiB |
BIN
app/src/main/res/drawable-xhdpi/splash_icon.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/splash_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
BIN
app/src/main/res/drawable-xxhdpi/splash_icon.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/splash_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
BIN
app/src/main/res/drawable-xxxhdpi/splash_icon.png
Normal file
BIN
app/src/main/res/drawable-xxxhdpi/splash_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
BIN
app/src/main/res/drawable/splash_icon.png
Normal file
BIN
app/src/main/res/drawable/splash_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.3 KiB |
12
app/src/main/res/drawable/splash_screen.xml
Normal file
12
app/src/main/res/drawable/splash_screen.xml
Normal file
@@ -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>
|
8
app/src/main/res/values-night-v27/styles.xml
Normal file
8
app/src/main/res/values-night-v27/styles.xml
Normal file
@@ -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>
|
10
app/src/main/res/values-v27/styles.xml
Normal file
10
app/src/main/res/values-v27/styles.xml
Normal file
@@ -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>
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user