Skip to content

Commit 94d0ec8

Browse files
committed
fix(android): fix stretched splash
1 parent 1bc6ef7 commit 94d0ec8

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,11 @@
1818

1919
<style name="AppTheme.NoActionBarLaunch" parent="AppTheme.NoActionBar">
2020
<item name="android:background">@drawable/splash</item>
21+
22+
<item name="android:windowNoTitle">false</item>
23+
<item name="android:windowActionBar">false</item>
24+
<item name="android:windowFullscreen">false</item>
25+
<item name="android:windowContentOverlay">@null</item>
26+
<item name="android:windowIsTranslucent">true</item>
2127
</style>
2228
</resources>

capacitor.config.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
"webDir": "build/",
77
"plugins": {
88
"SplashScreen": {
9-
"launchShowDuration": 0
9+
"androidScaleType": "CENTER_CROP",
10+
"splashFullScreen": true,
11+
"splashImmersive": false,
12+
"backgroundColor": "#ffffff"
1013
}
1114
},
1215
"cordova": {}

0 commit comments

Comments
 (0)