Browse Source

FIX | Fix splash-screen & app icon for android

pull/5/head
Vlad Narizhnyi 11 months ago
parent
commit
0067f5c210
  1. 1
      android/app/src/main/AndroidManifest.xml
  2. BIN
      android/app/src/main/ic_launcher-playstore.png
  3. BIN
      android/app/src/main/res/drawable-mdpi/splash_image.png
  4. BIN
      android/app/src/main/res/drawable-xhdpi/splash_image.png
  5. BIN
      android/app/src/main/res/drawable-xxhdpi/splash_image.png
  6. 0
      android/app/src/main/res/drawable/splash_screen.png
  7. 11
      android/app/src/main/res/drawable/splashscreen.xml
  8. 15
      android/app/src/main/res/layout/launch_screen.xml
  9. 11
      android/app/src/main/res/layout/splash_screen.xml
  10. 5
      android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
  11. 5
      android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
  12. BIN
      android/app/src/main/res/mipmap-hdpi-v26/ic_foreground.png
  13. 4
      android/app/src/main/res/mipmap-hdpi-v26/ic_launcher.xml
  14. BIN
      android/app/src/main/res/mipmap-hdpi/ic_launcher.png
  15. BIN
      android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
  16. BIN
      android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
  17. BIN
      android/app/src/main/res/mipmap-ldpi-v26/ic_foreground.png
  18. 4
      android/app/src/main/res/mipmap-ldpi-v26/ic_launcher.xml
  19. BIN
      android/app/src/main/res/mipmap-ldpi/ic_launcher.png
  20. BIN
      android/app/src/main/res/mipmap-mdpi-v26/ic_foreground.png
  21. 4
      android/app/src/main/res/mipmap-mdpi-v26/ic_launcher.xml
  22. BIN
      android/app/src/main/res/mipmap-mdpi/ic_launcher.png
  23. BIN
      android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
  24. BIN
      android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
  25. BIN
      android/app/src/main/res/mipmap-xhdpi-v26/ic_foreground.png
  26. 4
      android/app/src/main/res/mipmap-xhdpi-v26/ic_launcher.xml
  27. BIN
      android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
  28. BIN
      android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
  29. BIN
      android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
  30. BIN
      android/app/src/main/res/mipmap-xxhdpi-v26/ic_foreground.png
  31. 4
      android/app/src/main/res/mipmap-xxhdpi-v26/ic_launcher.xml
  32. BIN
      android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  33. BIN
      android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
  34. BIN
      android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
  35. BIN
      android/app/src/main/res/mipmap-xxxhdpi-v26/ic_foreground.png
  36. 4
      android/app/src/main/res/mipmap-xxxhdpi-v26/ic_launcher.xml
  37. BIN
      android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
  38. BIN
      android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
  39. BIN
      android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
  40. 3
      android/app/src/main/res/values/colors-icon.xml
  41. 4
      android/app/src/main/res/values/colors-splash.xml
  42. 4
      android/app/src/main/res/values/ic_launcher_background.xml
  43. 2
      android/app/src/main/res/values/strings.xml
  44. 6
      android/app/src/main/res/values/styles.xml

1
android/app/src/main/AndroidManifest.xml

@ -7,7 +7,6 @@ @@ -7,7 +7,6 @@
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="false"
android:usesCleartextTraffic="true"
android:theme="@style/AppTheme">

BIN
android/app/src/main/ic_launcher-playstore.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
android/app/src/main/res/drawable-mdpi/splash_image.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

BIN
android/app/src/main/res/drawable-xhdpi/splash_image.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

BIN
android/app/src/main/res/drawable-xxhdpi/splash_image.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

0
android/app/src/main/res/drawable-hdpi/splash_image.png → android/app/src/main/res/drawable/splash_screen.png

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 83 KiB

11
android/app/src/main/res/drawable/splashscreen.xml

@ -1,11 +0,0 @@ @@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/splashprimary" />
<item>
<bitmap
android:gravity="center"
android:src="@drawable/splash_image" />
</item>
</layer-list>

15
android/app/src/main/res/layout/launch_screen.xml

@ -1,15 +0,0 @@ @@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="0dp"
android:contentDescription="Splashscreen"
android:scaleType="fitCenter"
android:background="@color/splashprimary"
android:src="@drawable/splashscreen"/>
</RelativeLayout>

11
android/app/src/main/res/layout/splash_screen.xml

@ -0,0 +1,11 @@ @@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/splash_screen"
android:scaleType="centerCrop"
/>
</RelativeLayout>

5
android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>

5
android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>

BIN
android/app/src/main/res/mipmap-hdpi-v26/ic_foreground.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

4
android/app/src/main/res/mipmap-hdpi-v26/ic_launcher.xml

@ -1,4 +0,0 @@ @@ -1,4 +0,0 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/iconBackground"/>
<foreground android:drawable="@mipmap/ic_foreground"/>
</adaptive-icon>

BIN
android/app/src/main/res/mipmap-hdpi/ic_launcher.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
android/app/src/main/res/mipmap-ldpi-v26/ic_foreground.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

4
android/app/src/main/res/mipmap-ldpi-v26/ic_launcher.xml

@ -1,4 +0,0 @@ @@ -1,4 +0,0 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/iconBackground"/>
<foreground android:drawable="@mipmap/ic_foreground"/>
</adaptive-icon>

BIN
android/app/src/main/res/mipmap-ldpi/ic_launcher.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

BIN
android/app/src/main/res/mipmap-mdpi-v26/ic_foreground.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

4
android/app/src/main/res/mipmap-mdpi-v26/ic_launcher.xml

@ -1,4 +0,0 @@ @@ -1,4 +0,0 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/iconBackground"/>
<foreground android:drawable="@mipmap/ic_foreground"/>
</adaptive-icon>

BIN
android/app/src/main/res/mipmap-mdpi/ic_launcher.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
android/app/src/main/res/mipmap-xhdpi-v26/ic_foreground.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

4
android/app/src/main/res/mipmap-xhdpi-v26/ic_launcher.xml

@ -1,4 +0,0 @@ @@ -1,4 +0,0 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/iconBackground"/>
<foreground android:drawable="@mipmap/ic_foreground"/>
</adaptive-icon>

BIN
android/app/src/main/res/mipmap-xhdpi/ic_launcher.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

BIN
android/app/src/main/res/mipmap-xxhdpi-v26/ic_foreground.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

4
android/app/src/main/res/mipmap-xxhdpi-v26/ic_launcher.xml

@ -1,4 +0,0 @@ @@ -1,4 +0,0 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/iconBackground"/>
<foreground android:drawable="@mipmap/ic_foreground"/>
</adaptive-icon>

BIN
android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

BIN
android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

BIN
android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

BIN
android/app/src/main/res/mipmap-xxxhdpi-v26/ic_foreground.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

4
android/app/src/main/res/mipmap-xxxhdpi-v26/ic_launcher.xml

@ -1,4 +0,0 @@ @@ -1,4 +0,0 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/iconBackground"/>
<foreground android:drawable="@mipmap/ic_foreground"/>
</adaptive-icon>

BIN
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

BIN
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

BIN
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 14 KiB

3
android/app/src/main/res/values/colors-icon.xml

@ -1,3 +0,0 @@ @@ -1,3 +0,0 @@
<resources>
<color name ='iconBackground'>#37296B</color>
</resources>

4
android/app/src/main/res/values/colors-splash.xml

@ -1,4 +0,0 @@ @@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="splashprimary">#37296B</color>
</resources>

4
android/app/src/main/res/values/ic_launcher_background.xml

@ -0,0 +1,4 @@ @@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#37296B</color>
</resources>

2
android/app/src/main/res/values/strings.xml

@ -1,3 +1,3 @@ @@ -1,3 +1,3 @@
<resources>
<string name="app_name">Truth</string>
<string name="app_name">Truth or Dare</string>
</resources>

6
android/app/src/main/res/values/styles.xml

@ -1,12 +1,10 @@ @@ -1,12 +1,10 @@
<resources>
<style name="SplashScreenTheme" parent="SplashScreen_SplashTheme">
<item name="colorPrimaryDark">@color/splashprimary</item>
</style>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
<!-- Customize your theme here. -->
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@drawable/splash_screen</item>
<item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
</style>

Loading…
Cancel
Save