<?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="@dimen/mailbox_status_view_height"
    android:paddingHorizontal="@dimen/mailbox_status_view_padding_horizontal"
    android:background="@color/background_norm">

    <TextView
        android:id="@+id/updatedStatusTextView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        tools:text="@string/mailbox_updated_just_now"
        style="@style/Proton.Text.Caption.Hint" />

    <ch.protonmail.android.mailbox.presentation.ui.UnreadChip
        android:id="@+id/unreadMessagesStatusChip"
        android:layout_width="wrap_content"
        android:layout_height="@dimen/unread_messages_chip_size"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        app:chipMinTouchTargetSize="0dp"
        app:chipStartPadding="0dp"
        app:chipEndPadding="2dp"
        android:checked="false"
        style="@style/UnreadMessagesStatusChip" />

</androidx.constraintlayout.widget.ConstraintLayout>
