I want to put a scroll view to scroll the content on my screen, but I can't understand what I'm doing wrong here. Any help would be highly appreciated. Do I need to put my constraint layout in a linear layout and then that linear view in the scroll view or I'm doing something else wrong here?
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true">
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.constraint.ConstraintLayout
android:id="@+id/layout_fragment_head"
android:layout_width="0dp"
android:layout_height="0dp"
android:background="@color/color_theme_main_dark"
app:layout_constraintBottom_toTopOf="@+id/guideline15"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
// I edited the code here for simplicity
</android.support.constraint.ConstraintLayout>
<fragment
android:id="@+id/fragment_deviceslist"
android:name="com.resatech.android.scoutandroid.master.fragments.DevicesListFragment"
android:layout_width="0dp"
android:layout_height="0dp"
app:defaultNavHost="true"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/guideline15"
tools:layout="@layout/fragment_devices_list" />
<android.support.constraint.Guideline
android:id="@+id/guideline15"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_percent=".3" />
</android.support.constraint.ConstraintLayout>
</ScrollView>