Android 全屏图像视图不包括材料AppbarLayout

Android 全屏图像视图不包括材料AppbarLayout,android,imageview,material-design,fullscreen,appbar,Android,Imageview,Material Design,Fullscreen,Appbar,伙计们。 我想在片段布局中添加一个完整的全屏图像视图。 我的布局包括全屏前景图像视图。 但它只覆盖了AppbarLayout之外的其余区域。 有没有办法覆盖包括appbar在内的全屏 <layout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:to

伙计们。 我想在片段布局中添加一个完整的全屏图像视图。 我的布局包括全屏前景图像视图。 但它只覆盖了AppbarLayout之外的其余区域。 有没有办法覆盖包括appbar在内的全屏

<layout 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">
    <androidx.coordinatorlayout.widget.CoordinatorLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        >
        <com.google.android.material.appbar.AppBarLayout
            android:id="@+id/app_bar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@android:color/white">
            <RelativeLayout
                android:id="@+id/title_bar"
                android:layout_width="match_parent"
                android:layout_height="?android:attr/actionBarSize"
                android:layout_marginTop="@dimen/spacing_l">
                ...
            </RelativeLayout>
            <com.google.android.material.tabs.TabLayout
                android:id="@+id/tabs"
                android:layout_width="match_parent"
                android:layout_height="38dp"
                android:background="@android:color/transparent"
                app:tabIndicatorHeight="4dp"
                app:tabIndicatorColor="#ffEB4E"
                app:tabSelectedTextColor="@android:color/black"
                app:tabTextAppearance="@style/TabLayoutTextSize"
                app:tabTextColor="@android:color/black" />
        </com.google.android.material.appbar.AppBarLayout>
        <androidx.viewpager2.widget.ViewPager2
            android:id="@+id/pager"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="#F5F5F5"
            app:layout_behavior="@string/appbar_scrolling_view_behavior" />
        <ImageView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            tools:ignore="ContentDescription"
            android:clickable="true"
            android:focusable="true" />
    </androidx.coordinatorlayout.widget.CoordinatorLayout>
</layout>

...