There's this image in the side menu:
<ImageView
            android:layout_width="match_parent"
            android:layout_height="56dp"
            android:src="@drawable/built_with_firebase_logo_dark"
            android:scaleType="centerInside"
            android:adjustViewBounds="true"
            android:padding="6dp"
            android:clickable="true"
            android:id="@+id/FirebaseButton"
            android:focusable="true" />


In other activities it works fine: <?xml version="1.0" encoding="utf-8"?>

<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/drawer_layout"
    tools:context="com.HidiStudios.BeST.MainActivity">


    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:padding="16dp">

        <EditText
            android:id="@+id/messageEditText"
            android:layout_width="match_parent"
            android:layout_height="200sp"
            android:hint="Enter your message here"
            android:maxLength="2000"
            android:inputType="textMultiLine"
            android:lines="6"/>

        <TextView
            android:id="@+id/charCountTextView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@id/messageEditText"
            android:text="0/4000"
            android:gravity="end"/>

        <Button
            android:id="@+id/sendMessageButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"
            android:text="Send"
            android:layout_below="@id/messageEditText"
            android:layout_marginTop="16dp"
            android:backgroundTint="#FFA000"
            android:shadowColor="@color/black"
            android:shadowRadius="40"/>

    </RelativeLayout>

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:layout_gravity="start">

        <com.google.android.material.navigation.NavigationView
            android:id="@+id/nav_view"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            app:headerLayout="@layout/header"
            app:menu="@menu/main_menu"
            />

        <ImageView
            android:layout_width="match_parent"
            android:layout_height="56dp"
            android:src="@drawable/built_with_firebase_logo_dark"
            android:scaleType="centerInside"
            android:adjustViewBounds="true"
            android:padding="6dp"
            android:clickable="true"
            android:id="@+id/FirebaseButton"
            android:focusable="true" />
    </LinearLayout>

</androidx.drawerlayout.widget.DrawerLayout>


It says at the bottom, as it's supposed to do so.
But in MainActivity, It just sometimes randomly jumps to the top:
<?xml version="1.0" encoding="utf-8"?>

<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/drawer_layout"
    tools:context="com.HidiStudios.BeST.MainActivity">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        tools:context="com.HidiStudios.BeST.MainActivity">


        <TextView
            android:id="@+id/Coins"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="50sp"
            android:text="@string/coins_message"
            android:textAlignment="center"
            android:textSize="20sp"
            android:textStyle="bold|italic" />

        <TextView
            android:id="@+id/stats"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/resetButton"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="5sp"
            android:text="@string/stats_message"
            android:textAlignment="center"
            android:textSize="16sp"
            android:textStyle="" />

        <Button
            android:id="@+id/resetButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/RewardedbtnAds"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="-25dp"
            android:backgroundTint="@android:color/transparent"
            android:shadowColor="@color/black"
            android:shadowRadius="20"
            android:text="@string/reset_coins"
            android:textSize="4pt" />

        <Button
            android:id="@+id/IntbtnAds"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:backgroundTint="#DB4437"
            android:shadowColor="@color/black"
            android:shadowRadius="40"
            android:text="@string/load_interstitial_ad" />

        <Button
            android:id="@+id/BannerbtnAds"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_above="@+id/IntbtnAds"
            android:layout_centerHorizontal="true"
            android:layout_margin="50sp"
            android:backgroundTint="#4285F4"
            android:shadowColor="@color/black"
            android:shadowRadius="40"
            android:text="@string/toggle_banner_ad" />

        <Button
            android:id="@+id/RewardedbtnAds"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/IntbtnAds"
            android:layout_centerHorizontal="true"
            android:layout_margin="50sp"
            android:backgroundTint="#F4B400"
            android:shadowColor="@color/black"
            android:shadowRadius="40"
            android:text="@string/show_rewarded_ad" />

        <com.google.android.gms.ads.AdView
            xmlns:ads="http://schemas.android.com/apk/res-auto"
            android:id="@+id/adView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"
            android:layout_alignParentBottom="true"
            ads:adSize="BANNER"
            ads:adUnitId="@string/BANNER_AD_UNIT_ID">
        </com.google.android.gms.ads.AdView>
    </RelativeLayout>

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:layout_gravity="start">

        <com.google.android.material.navigation.NavigationView
            android:id="@+id/nav_view"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            app:headerLayout="@layout/header"
            app:menu="@menu/main_menu"
            />

        <ImageView
            android:layout_width="match_parent"
            android:layout_height="56dp"
            android:src="@drawable/built_with_firebase_logo_dark"
            android:scaleType="centerInside"
            android:adjustViewBounds="true"
            android:padding="6dp"
            android:clickable="true"
            android:id="@+id/FirebaseButton"
            android:focusable="true" />
    </LinearLayout>

</androidx.drawerlayout.widget.DrawerLayout>


Help me figure out why. It jumps to the top, upper to the header (@layout/header). Fix it