# Android Splash Screen position issue, fullscreen?

**URL:** <https://forum.ionicframework.com/t/android-splash-screen-position-issue-fullscreen/210365>\
**Category:** Capacitor\
**Created:** [May 31, 2021, 8:23am UTC](https://forum.ionicframework.com/t/android-splash-screen-position-issue-fullscreen/210365 "2021-05-31T08:23:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JumBay](https://avatars.discourse-cdn.com/v4/letter/j/6a8cbe/32.png) [@JumBay](https://forum.ionicframework.com/u/JumBay)\
**Post date:** [May 31, 2021, 8:23am UTC](https://forum.ionicframework.com/t/android-splash-screen-position-issue-fullscreen/210365/1 "2021-05-31T08:23:44Z")

</div>

Hi,

I’ve got an issue with my splash screen, for better understanding I did a video of what’s going on [splashscreen](https://streamable.com/z0z473)

As you can see, when the SplashScreen plugin displays its splash screen, the image has not the same position as the previous one.

I’m on Capacitor 3

I’ve created **9 patch** splash files by following [this tutorial](https://www.joshmorony.com/creating-a-dynamic-universal-splash-screen-for-capacitor-android/) to avoid the image to be stretched. Maybe that’s the issue.

Here is my splash screen configuration from **capacitor.config.ts** :

```auto
    SplashScreen: {
      androidSplashResourceName: 'splash',
      launchShowDuration: 10000,
      showSpinner: false,
      backgroundColor: '#000000',
      androidScaleType: 'FIT_XY',
      splashFullScreen: false,
      splashImmersive: false,
      launchAutoHide: false,
    }

```

In AndroidManifest.xml I have:

```auto
    <activity
      android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
      android:name="app.wako.MainActivity"
      android:label="@string/title_activity_main"
      android:theme="@style/AppTheme.NoActionBarLaunch"
      android:launchMode="singleTask">

```

And in my styles.xml:

```auto
<?xml version="1.0" encoding="utf-8"?>
<resources>

  <!-- Base application theme. -->
  <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <!-- Customize your theme here. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
  </style>

  <style name="AppTheme.NoActionBar" parent="Theme.AppCompat.NoActionBar">
    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>
    <item name="android:background">@null</item>
  </style>

  <style name="AppTheme.NoActionBarLaunch" parent="AppTheme.NoActionBar">
    <item name="android:background">@drawable/splash</item>
  </style>
</resources>

```

Thanks

---

<div class="post-metadata">

**Author:** ![jschwenk](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@jschwenk](https://forum.ionicframework.com/u/jschwenk)\
**Post date:** [June 2, 2021, 12:37pm UTC](https://forum.ionicframework.com/t/android-splash-screen-position-issue-fullscreen/210365/2 "2021-06-02T12:37:43Z")

</div>

Did you find this github issue?

> <https://github.com/ionic-team/capacitor/issues/1627>
>
> Description of the problem:
> I followed the instructions to configure splash scr…een scaling described here: https://capacitor.ionicframework.com/docs/apis/splash-screen/#configuration. When the app launches, Capacitor displays my splash screen scaled incorrectly, then adjusts to the scaling I have in my \`capacitor.config.json\` file:
> 
> \`\`\`
> "plugins": {
> "SplashScreen": {
> "launchShowDuration": 1000,
> "launchAutoHide": true,
> "androidSplashResourceName": "splash",
> "androidScaleType": "CENTER\_CROP"
> }
> },
> \`\`\`
> What I'm expecting is that the splash screen displays once, at the specified scale. 
> 
> Affected platform
> \- \[X\] Android
> \- \[\] iOS
> \- \[\] electron
> \- \[\] web
> 
> OS of the development machine
> \- \[X\] Windows
> \- \[\] macOS
> \- \[\] linux
> 
> Other information:
> 
> Capacitor version:
> 5.0
> node version:
> 10.15.3
> npm version:
> 6.9.0
> CocoaPods version:
> 
> 
> Steps to reproduce:
> As described above.
> 
> Link to sample project:

It`s a tricky topic. But I found a solution in the github issue.

---

<div class="post-metadata">

**Author:** ![JumBay](https://avatars.discourse-cdn.com/v4/letter/j/6a8cbe/32.png) [@JumBay](https://forum.ionicframework.com/u/JumBay)\
**Post date:** [June 2, 2021, 1:36pm UTC](https://forum.ionicframework.com/t/android-splash-screen-position-issue-fullscreen/210365/3 "2021-06-02T13:36:22Z")

</div>

Hi,

Thanks for you reply.

Yes I did follow some workarounds, but I didn’t find one that works. The only solution that seemed to work (based on his video) is [Splash Screen scaling displays twice · Issue #1627 · ionic-team/capacitor · GitHub](https://github.com/ionic-team/capacitor/issues/1627#issuecomment-716164834) but the java code has changed since capacitor 3.

Did you find a good solution?

---

<div class="post-metadata">

**Author:** ![jschwenk](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@jschwenk](https://forum.ionicframework.com/u/jschwenk)\
**Post date:** [June 3, 2021, 10:29am UTC](https://forum.ionicframework.com/t/android-splash-screen-position-issue-fullscreen/210365/4 "2021-06-03T10:29:41Z")

</div>

I decided to just show a background color in the first step, and than the image in second step. It`s just a workaround, too...for me it`s fine. You can see the result [in my app](https://play.google.com/store/apps/details?id=com.restegourmet.rg_eat)
