<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Nextcloud - Android Client
  ~
  ~ SPDX-FileCopyrightText: 2025 Alper Ozturk <alper.ozturk@nextcloud.com>
  ~ SPDX-FileCopyrightText: 2016 Andy Scherzinger <info@andy-scherzinger>
  ~ SPDX-FileCopyrightText: 2016 Nextcloud GmbH
  ~ SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
-->
<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:id="@+id/header_container"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:paddingBottom="@dimen/alternate_half_padding"
    android:paddingEnd="@dimen/zero"
    android:paddingStart="@dimen/standard_quarter_padding"
    android:paddingTop="@dimen/alternate_half_padding">

    <include
        android:id="@+id/auto_upload_battery_saver_warning_card"
        layout="@layout/auto_upload_battery_saver_warning_card"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:layout_marginBottom="@dimen/standard_quadruple_margin"
        android:visibility="gone"
        android:layout_marginEnd="@dimen/standard_margin"
        android:layout_marginStart="@dimen/standard_half_margin"
        app:layout_constraintBottom_toBottomOf="@id/type"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        tools:visibility="visible" />

    <ImageView
        android:id="@+id/type"
        android:layout_width="@dimen/minimum_size_for_touchable_area"
        android:layout_height="@dimen/minimum_size_for_touchable_area"
        android:contentDescription="@string/synced_folders_type"
        android:padding="@dimen/standard_half_padding"
        android:src="@drawable/image_32dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent" />

    <TextView
        android:id="@+id/title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:ellipsize="middle"
        android:gravity="center|start"
        android:textColor="?android:textColorPrimary"
        android:textStyle="bold"
        tools:text="@string/placeholder_filename"
        android:maxLines="1"
        app:layout_constraintBottom_toTopOf="@+id/scanIndicatorText"
        app:layout_constraintStart_toEndOf="@+id/type" />

    <TextView
        android:id="@+id/scanIndicatorText"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginBottom="@dimen/standard_quarter_margin"
        android:ellipsize="end"
        android:gravity="center|start"
        android:maxLines="1"
        android:textColor="@color/log_level_warning"
        android:textStyle="normal"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toEndOf="@+id/type"
        tools:text="@string/placeholder_scan_indicator"
        tools:visibility="visible" />

    <com.google.android.material.button.MaterialButton
        android:id="@+id/subFolderWarningButton"
        style="@style/Widget.Material3.Button.IconButton.Filled.Tonal"
        android:layout_width="@dimen/minimum_size_for_touchable_area"
        android:layout_height="@dimen/minimum_size_for_touchable_area"
        android:clickable="true"
        android:contentDescription="@string/sync_warning_button"
        android:focusable="true"
        android:visibility="gone"
        app:backgroundTint="@color/transparent"
        app:cornerRadius="@dimen/button_corner_radius"
        app:icon="@drawable/ic_info"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toStartOf="@+id/syncStatusButton"
        tools:visibility="visible" />

    <com.google.android.material.button.MaterialButton
        android:id="@+id/syncStatusButton"
        style="@style/Widget.Material3.Button.IconButton.Filled.Tonal"
        android:layout_width="@dimen/minimum_size_for_touchable_area"
        android:layout_height="@dimen/minimum_size_for_touchable_area"
        android:clickable="true"
        android:contentDescription="@string/sync_status_button"
        android:focusable="true"
        app:backgroundTint="@color/transparent"
        app:cornerRadius="@dimen/button_corner_radius"
        app:icon="@drawable/ic_cloud_sync_off"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toStartOf="@+id/settingsButton" />

    <com.google.android.material.button.MaterialButton
        android:id="@+id/settingsButton"
        style="@style/Widget.Material3.Button.IconButton.Filled.Tonal"
        android:layout_width="@dimen/minimum_size_for_touchable_area"
        android:layout_height="@dimen/minimum_size_for_touchable_area"
        android:clickable="true"
        android:contentDescription="@string/synced_folder_settings_button"
        android:focusable="true"
        app:backgroundTint="@color/transparent"
        app:cornerRadius="@dimen/button_corner_radius"
        app:icon="@drawable/ic_dots_vertical"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
