<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2020 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<org.chromium.chrome.browser.share.screenshot.ScreenshotShareSheetView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <ImageView
            android:id="@+id/screenshot"
            android:layout_alignParentTop="true"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_above="@id/actions"
            android:importantForAccessibility="no" />

        <LinearLayout
            android:id="@+id/actions"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_marginTop="8dp"
            android:layout_marginStart="36dp"
            android:layout_marginEnd="36dp"
            android:orientation="horizontal">

            <TextView
                android:id="@+id/delete"
                android:layout_weight="1"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:text="@string/screenshot_delete_title"
                style="@style/SplitToolbarButton"
                android:drawableTop="@drawable/delete_icon"
                android:drawableTint="@color/default_icon_color_tint_list"
                android:gravity="center_horizontal"
                android:textAlignment="center"
                android:background="?attr/selectableItemBackgroundBorderless" />
            <TextView
                android:id="@+id/save"
                android:layout_weight="1"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:text="@string/screenshot_save_title"
                style="@style/SplitToolbarButton"
                android:drawableTop="@drawable/save_icon"
                android:drawableTint="@color/default_icon_color_tint_list"
                android:gravity="center"
                android:background="?attr/selectableItemBackgroundBorderless" />
            <TextView
                android:id="@+id/share"
                android:layout_weight="1"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:text="@string/screenshot_share_title"
                style="@style/SplitToolbarButton"
                android:drawableTop="@drawable/share_icon"
                android:drawableTint="@color/default_icon_color_tint_list"
                android:gravity="center"
                android:background="?attr/selectableItemBackgroundBorderless" />
        </LinearLayout>

        <org.chromium.ui.widget.ChromeImageButton
            android:id="@+id/close_button"
            android:layout_alignParentTop="true"
            android:layout_alignParentStart="true"
            android:minWidth="@dimen/min_touch_target_size"
            android:minHeight="@dimen/min_touch_target_size"
            style="@style/ToolbarButton"
            android:src="@drawable/btn_close"
            android:contentDescription="@string/close"
            app:tint="@color/default_icon_color_tint_list" />

    </RelativeLayout>
</org.chromium.chrome.browser.share.screenshot.ScreenshotShareSheetView>
