ConstraintLayout не занимает все пространство Scrollview
обернул ConstraintLayout в Scrollview, поскольку в лэйауте лежит динамический RecyclerView.
Но при рендеринге ConstraintLayout остается вверху экрана (см. скриншот)

Сам код разметки
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android"
tools:context=".activities.MainActivity"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:background="@drawable/round_corners"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<com.google.android.material.textfield.TextInputLayout
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:hint="Например, 35 или firstBug"
app:helperText="Введите название или номер бага">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/searchQuery"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/round_corners"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp" />
<Button
android:id="@+id/searchingButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:icon="@drawable/search"
android:layout_marginStart="10dp"
android:layout_marginBottom="10dp"
android:text="@string/ruSearchButton" />
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/linearLayout"
android:layout_marginStart="10dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
android:orientation="vertical">
<LinearLayout
android:id="@+id/containerForRecycle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/round_corners"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/linearLayout">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:fillViewport="true"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" />
</LinearLayout>
</ScrollView>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
style="@style/Widget.MaterialComponents.BottomNavigationView.Colored"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:menu="@menu/bottom_navigation_menu" />
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
В чем может быть проблема?