<?xml version="1.0" encoding="utf-8"?>
<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_view"
    android:layout_width="match_parent"
    android:layout_height="@dimen/drawer_header_height"
    android:background="@color/defaultBrand">

    <ImageView
        android:id="@+id/logo"
        android:layout_width="@dimen/drawer_header_logo_size"
        android:layout_height="@dimen/drawer_header_logo_size"
        android:layout_margin="@dimen/spacer_2x"
        android:contentDescription="@string/app_logo"
        android:gravity="center"
        android:padding="@dimen/spacer_1hx"
        android:src="@drawable/ic_app_logo"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="@id/header_view"
        app:tint="@android:color/white" />

    <TextView
        android:id="@+id/app_name"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerVertical="true"
        android:layout_marginStart="@dimen/spacer_2x"
        android:layout_toEndOf="@id/logo"
        android:ellipsize="end"
        android:fontFamily="sans-serif-light"
        android:gravity="center_vertical"
        android:text="@string/app_name_short"
        android:textColor="@android:color/white"
        android:textSize="24sp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toEndOf="@+id/logo"
        app:layout_constraintTop_toTopOf="parent" />

    <ImageButton
        android:id="@+id/copyDebugLogs"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentEnd="true"
        android:layout_centerVertical="true"
        android:layout_marginEnd="12dp"
        android:background="?attr/selectableItemBackground"
        android:contentDescription="@string/copy_logs"
        android:padding="@dimen/spacer_2x"
        android:src="@drawable/ic_bug_report_24dp"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:tint="@android:color/white"
        app:tooltipText="@string/copy_logs"
        tools:visibility="visible" />
</androidx.constraintlayout.widget.ConstraintLayout>