Skip to content

Commit 4981516

Browse files
committed
use a black splash screen at app launch
1 parent 9729b33 commit 4981516

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
android:theme="@style/AppTheme">
2222
<activity
2323
android:name=".activities.MainActivity"
24-
android:screenOrientation="portrait">
24+
android:screenOrientation="portrait"
25+
android:theme="@style/BlackSplashScreen">
2526
<intent-filter>
2627
<action android:name="android.intent.action.MAIN"/>
2728

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
<item name="actionBarStyle">@style/AppTheme.ActionBarStyle</item>
88
</style>
99

10+
<style name="BlackSplashScreen" parent="AppTheme">
11+
<item name="android:windowBackground">@null</item>
12+
</style>
13+
1014
<style name="AppTheme.ActionBarStyle" parent="@style/Base.Widget.AppCompat.ActionBar">
1115
<item name="background">@color/colorPrimary</item>
1216
<item name="titleTextStyle">@style/AppTheme.ActionBar.TitleTextStyle</item>

0 commit comments

Comments
 (0)