<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:orientation="vertical" android:fitsSystemWindows="true" android:layout_width="match_parent" android:layout_height="match_parent"> <com.google.android.material.appbar.AppBarLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:fitsSystemWindows="true"> <com.google.android.material.appbar.CollapsingToolbarLayout android:id="@+id/collapsing_toolbar" style="?attr/collapsingToolbarLayoutLargeStyle" android:background="@color/e_background" android:layout_width="match_parent" app:layout_scrollFlags="scroll|exitUntilCollapsed|snap" android:layout_height="?attr/collapsingToolbarLayoutLargeSize"> <com.google.android.material.appbar.MaterialToolbar app:navigationIcon="@drawable/e_ic_back" app:title="@string/eos_settings_title" android:id="@+id/toolbar" android:background="@color/e_background" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" app:layout_collapseMode="pin" /> </com.google.android.material.appbar.CollapsingToolbarLayout> </com.google.android.material.appbar.AppBarLayout> <androidx.core.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:fillViewport="true" app:layout_behavior="@string/appbar_scrolling_view_behavior"> <FrameLayout android:id="@+id/fragment_container" android:layout_width="match_parent" android:layout_height="match_parent"/> </androidx.core.widget.NestedScrollView> </LinearLayout>