Browse Source

Improve android splash screen style

Arnaud Vergnet 3 years ago
parent
commit
89c65d7070

+ 1
- 1
android/app/src/main/java/fr/amicaleinsat/application/MainActivity.java View File

@@ -23,7 +23,7 @@ public class MainActivity extends ReactActivity {
23 23
 
24 24
    @Override
25 25
     protected void onCreate(Bundle savedInstanceState) {
26
-        SplashScreen.show(this);
26
+        SplashScreen.show(this, R.style.SplashScreenTheme);
27 27
         super.onCreate(savedInstanceState);
28 28
     }
29 29
 

+ 5
- 1
android/app/src/main/res/values/styles.xml View File

@@ -7,4 +7,8 @@
7 7
     <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
8 8
     <item name="colorPrimary">@color/colorPrimary</item>
9 9
   </style>
10
-</resources>
10
+  <style name="SplashScreenTheme" parent="SplashScreen_SplashTheme">
11
+    <item name="android:navigationBarColor">@color/activityBackground</item>
12
+    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
13
+  </style>
14
+</resources>

Loading…
Cancel
Save