<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2021 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<!-- Please update R.dimens.account_selection_sheet_height_single_account
when modifying the margins or text sizes. -->
<LinearLayout
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="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginBottom="8dp"
android:layout_gravity="top"
android:orientation="vertical">
<LinearLayout
android:id="@+id/header"
android:descendantFocusability="afterDescendants"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:focusable="true"
android:orientation="vertical">
<LinearLayout
android:descendantFocusability="afterDescendants"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginEnd="@dimen/account_selection_sheet_close_button_horizontal_margin"
android:layout_marginStart="@dimen/account_selection_sheet_horizontal_margin"
android:orientation="horizontal"
android:minHeight="@dimen/account_selection_sheet_title_height">
<org.chromium.ui.widget.ChromeImageView
android:id="@+id/header_idp_icon"
android:layout_width="@dimen/account_selection_sheet_icon_size"
android:layout_height="@dimen/account_selection_sheet_icon_size"
android:layout_gravity="center_vertical"
android:layout_marginEnd="16dp"
android:visibility="gone"
android:focusable="false"
android:importantForAccessibility="no" />
<TextView
android:id="@+id/header_title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_gravity="center_vertical"
android:paddingTop="12dp"
android:paddingBottom="12dp"
android:focusable="false"
android:importantForAccessibility="yes"
android:textAppearance="@style/TextAppearance.TextAccentMediumThick" />
<org.chromium.ui.widget.ChromeImageButton
android:id="@+id/close_button"
android:layout_height="48dp"
android:layout_width="48dp"
android:layout_gravity="center_vertical"
android:background="?attr/selectableItemBackground"
android:contentDescription="@string/close"
android:scaleType="center"
android:focusable="true"
android:screenReaderFocusable="true"
android:importantForAccessibility="yes"
android:src="@drawable/btn_close" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginEnd="@dimen/account_selection_sheet_close_button_horizontal_margin"
android:layout_marginStart="@dimen/account_selection_sheet_horizontal_margin"
android:orientation="horizontal">
<TextView
android:id="@+id/header_subtitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="36dp"
android:paddingBottom="12dp"
android:focusable="false"
android:importantForAccessibility="yes"
android:textAppearance="@style/TextAppearance.TextMedium.Secondary" />
</LinearLayout>
</LinearLayout>
<View
android:id="@+id/header_divider"
android:background="@macro/divider_line_bg_color"
android:layout_height="1dp"
android:layout_width="match_parent" />
<ProgressBar
android:id="@+id/header_progress_bar"
android:indeterminate="true"
android:layout_height="10dp"
android:layout_width="match_parent"
android:visibility="gone"
style="?android:attr/progressBarStyleHorizontal" />
</LinearLayout>