<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
	xmlns:android="http://schemas.android.com/apk/res/android"
	android:layout_width="match_parent"
	android:layout_height="match_parent"
	xmlns:app="http://schemas.android.com/apk/res-auto"
	android:orientation="vertical">

	<com.google.android.material.appbar.AppBarLayout
		android:id="@+id/appbar"
		android:layout_width="match_parent"
		android:layout_height="wrap_content">

		<androidx.appcompat.widget.Toolbar
		                                   android:id="@+id/crop_toolbar"
		                                   android:layout_width="match_parent"
		                                   android:layout_height="wrap_content"
		                                   android:background="?android:windowBackground"
		                                   app:contentInsetEnd="0dp"
		                                   app:contentInsetStart="0dp">

			<LinearLayout
				android:layout_width="match_parent"
				android:layout_height="match_parent"
				android:orientation="horizontal"
				android:divider="?android:attr/dividerVertical"
				android:dividerPadding="12dip"
				android:showDividers="middle">

				<!-- id must match corresponding menu item id -->
				<LinearLayout
					android:id="@+id/action_cancel"
					style="@style/Crop.ActionButton">

					<ImageView
						app:srcCompat="@drawable/ic_close"
						style="@style/Crop.ActionButtonImage"
						android:contentDescription="@string/cancel"/>

					<TextView
						android:text="@string/cancel"
						style="@style/Crop.ActionButtonText"/>

				</LinearLayout>

				<!-- id must match corresponding menu item id -->
				<LinearLayout
					android:id="@+id/action_done"
					style="@style/Crop.ActionButton">

					<ImageView
						app:srcCompat="@drawable/ic_check"
						style="@style/Crop.ActionButtonImage"
						android:contentDescription="@string/save_image"/>

					<TextView
						android:text="@string/crop"
						style="@style/Crop.ActionButtonText"/>

				</LinearLayout>
			</LinearLayout>
		</androidx.appcompat.widget.Toolbar>

	</com.google.android.material.appbar.AppBarLayout>


	<com.canhub.cropper.CropImageView
		android:id="@+id/crop_image"
		android:layout_width="match_parent"
		android:layout_height="0dp"
		android:layout_weight="1"
		android:background="?android:windowBackground"
		app:cropBorderCornerOffset="0dp"
		app:cropBorderCornerLength="20dp"
		app:cropBorderLineColor="#88FFFFFF"
		/>

</LinearLayout>
