<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (c) 2022 Proton AG
  ~
  ~ This file is part of Proton Mail.
  ~
  ~ Proton Mail is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ Proton Mail is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with Proton Mail. If not, see https://www.gnu.org/licenses/.
  -->

<androidx.constraintlayout.widget.ConstraintLayout
    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"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <TextView
        android:id="@+id/attachments_text_view"
        android:layout_width="0dp"
        android:layout_height="@dimen/message_details_banner_height"
        android:layout_marginStart="@dimen/message_details_banner_margin_horizontal"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toLeftOf="@id/chevron_image_view"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toTopOf="@id/attachments_list_linear_layout"
        android:textAppearance="@style/Proton.Text.DefaultSmall"
        app:drawableStartCompat="@drawable/ic_proton_paper_clip"
        android:drawablePadding="@dimen/message_details_banner_drawable_padding"
        android:gravity="center_vertical"
        tools:text="1 Attachment (1.2 MB)" />

    <ImageView
        android:id="@+id/chevron_image_view"
        android:layout_width="@dimen/message_details_banner_small_icon_size"
        android:layout_height="@dimen/message_details_banner_small_icon_size"
        android:layout_marginEnd="@dimen/message_details_banner_margin_horizontal"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toTopOf="@id/attachments_list_linear_layout"
        app:srcCompat="@drawable/ic_proton_chevron_down"
        app:tint="@color/icon_weak" />

    <!-- TODO: Will be removed when the separate screen for attachments is created -->
    <LinearLayout
        android:id="@+id/attachments_list_linear_layout"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        android:orientation="vertical"
        android:visibility="gone" />

</androidx.constraintlayout.widget.ConstraintLayout>
