<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2016 The Android Open Source Project
     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at
          http://www.apache.org/licenses/LICENSE-2.0
     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<merge xmlns:android="http://schemas.android.com/apk/res/android"
	xmlns:tools="http://schemas.android.com/tools"
	xmlns:drawer="http://schemas.android.com/apk/res-auto">

	<com.google.android.exoplayer2.ui.AspectRatioFrameLayout android:id="@id/exo_content_frame"
	                                                         android:layout_width="match_parent"
	                                                         android:layout_height="match_parent"
	                                                         android:layout_gravity="center">

		<!-- Video surface will be inserted as the first child of the content frame. -->

		<View android:id="@id/exo_shutter"
		      android:layout_width="match_parent"
		      android:layout_height="match_parent"
		      android:background="@android:color/black"/>

		<ImageView android:id="@id/exo_artwork"
		           android:layout_width="match_parent"
		           android:layout_height="match_parent"
		           android:scaleType="fitXY"/>

		<com.google.android.exoplayer2.ui.SubtitleView android:id="@id/exo_subtitles"
		                                               android:layout_width="match_parent"
		                                               android:layout_height="match_parent"/>

	</com.google.android.exoplayer2.ui.AspectRatioFrameLayout>

	<FrameLayout android:id="@id/exo_overlay"
	             android:layout_width="match_parent"
	             android:layout_height="match_parent">

		<androidx.constraintlayout.widget.ConstraintLayout
			android:id="@+id/controlOverlay"
			android:layout_width="match_parent"
			android:layout_height="match_parent">

			<TextView
				android:id="@+id/playbackSpeed"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:layout_marginTop="70dp"
				android:layout_marginEnd="32dp"
				android:layout_marginRight="32dp"
				android:background="#000000"
				android:clickable="true"
				android:text="1.0x"
				android:textColor="@android:color/white"
				android:textSize="20sp"
				drawer:layout_constraintEnd_toEndOf="parent"
				drawer:layout_constraintTop_toTopOf="parent"
				tools:text="1.0x" />

		</androidx.constraintlayout.widget.ConstraintLayout>

	</FrameLayout>

	<View android:id="@id/exo_controller_placeholder"
	      android:layout_width="match_parent"
	      android:layout_height="match_parent"/>

</merge>