Я хочу, чтобы player_view заполнял весь экран (появлялся за панелью состояния и навигации), как расположение координат, показанное на картинке красным цветом. Пожалуйста, посмотрите изображение, чтобы понять более подробную информацию. Также я не хочу применять какие-либо оконные вставки к player_view. Помогите мне.
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/root_video"
android:background="#d40000"
android:fitsSystemWindows="true"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".VideoPlayer">
<com.google.android.exoplayer2.ui.PlayerView
android:id="@+id/player_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:controller_layout_id="@layout/exo_player_video_control"
app:hide_on_touch="false"
app:surface_type="texture_view"
android:background="@android:color/background_dark"
app:show_timeout="0"
android:transitionName="PlayerTransition"
tools:ignore="UnusedAttribute" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
[![Detail Image][1]][1] [1]: https://i.stack.imgur.com/yYxUU.jpg