Layout and Layout-list centers differing
<p>I want to impement a Splash Screen for my app following this tutorial: <a href="https://www.bignerdranch.com/blog/splash-screens-the-right-way/" rel="nofollow">https://www.bignerdranch.com/blog/splash-screens-the-right-way/</a></p>

<p>So I define the layout-list etc. and it seems to work perfect. The problem comes when I want to switch from the splash screen to a real activity which will first have the same graphics as the splash screen (the user does not have to notice it has changed from the splash screen to an activity). However, I define in both cases (in the splash screen xml code and in the activity's layout code) to have an image in the center as follows:</p>

<p>1- Splash screen</p>

<pre><code>&lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;

    &lt;item
        android:drawable="@color/grey_dark"/&gt;

    &lt;item&gt;
        &lt;bitmap
            android:gravity="center"
            android:src="@drawable/ic_launcher_rounded"/&gt;
    &lt;/item&gt;

&lt;/layer-list&gt;
</code></pre>

<p>2.- Activity's layout</p>

<pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/grey_dark"&gt;

    &lt;ImageView
        android:layout_width="200dp"
        android:layout_height="200dp"
        android:src="@drawable/ic_launcher_rounded"
        android:layout_centerInParent="true"/&gt;

&lt;/RelativeLayout&gt;
</code></pre>

<p>Despite defining both to be in the center of the screen, they aren't actually in the same place as the center for the splash screen seems to be considered some pixels above from the ones for the layout.</p>

<p>Anybody knows why is it happening? Why does not place both of them in the real screen's center?</p>

<p>Thank you.</p>