I have a splash screen within a relative layout that is responsible for filling the screen of the mobile with the logo of the app. So far so good, the thing is that I'm trying to implement a progress bar so that as you carry out the checks you increase the progress and once the verifications that jump to the main activity ends.
The problem I have is that the splash screen occupies the whole screen and I do not know how I can do so that the splash screen continues with the function of occupying the whole screen of the device at the same time that I make the progress bar appear on top of the splash screen.
I enclose the xml so you can take a look at it
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".SplashScreenActivity"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@string/app_name"
android:scaleType="fitXY"
android:src="@drawable/splash_screen"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ProgressBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" />
</LinearLayout>