<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2023 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<!-- TODO(crbug.com/40236415): Use the AlertDialogContent style on the entire layout. -->
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical"
xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/dialog_padding_sides"
android:paddingEnd="@dimen/dialog_padding_sides"
android:paddingTop="@dimen/dialog_padding_top">
<TextView
android:id="@id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_toStartOf="@id/title_icon"
android:layout_marginEnd="10dp"
android:textAppearance="@style/TextAppearance.AlertDialogTitleStyle" />
<ImageView
android:id="@id/title_icon"
app:srcCompat="@drawable/google_pay"
android:layout_width="46dp"
android:layout_height="24dp"
android:layout_alignParentEnd="true"
android:layout_alignParentTop="true"
android:layout_marginTop="2dp"
android:contentDescription="@string/autofill_from_google_account" />
</RelativeLayout>
<ScrollView
android:fillViewport="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<RelativeLayout
android:id="@+id/autofill_card_unmask_prompt"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/no_retry_error_message"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="23dp"
android:layout_marginBottom="2dp"
android:paddingStart="24dp"
android:paddingEnd="24dp"
android:paddingTop="12dp"
android:paddingBottom="15dp"
android:gravity="start"
android:textAppearance="@style/TextAppearance.AutofillCardErrorMessage"
android:visibility="gone" />
<LinearLayout
android:id="@+id/controls_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/no_retry_error_message"
android:orientation="vertical">
<TextView
android:id="@+id/instructions"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:layout_marginTop="20dp"
android:textAppearance="@style/TextAppearance.AutofillCardInstructionsText"
android:lineSpacingMultiplier="1.25"
android:gravity="start" />
<include
layout="@layout/autofill_cc_details_new"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="13dp"
android:layout_marginHorizontal="24dp" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="14dp"
android:layout_marginStart="4dp"
android:orientation="horizontal">
<LinearLayout
android:id="@+id/expiration_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="24dp"
android:orientation="horizontal"
android:visibility="gone">
<!-- TODO(crbug.com/40600572): Fix and remove lint ignore -->
<EditText
tools:ignore="Autofill"
android:id="@+id/expiration_month"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:minHeight="48dp"
android:width="50sp"
android:maxLength="2"
android:gravity="center_horizontal"
android:imeOptions="actionNext"
android:inputType="number"
android:hint="@string/autofill_expiration_date_month_hint" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/autofill_expiration_date_separator" />
<!-- TODO(crbug.com/40600572): Fix and remove lint ignore -->
<EditText
tools:ignore="Autofill"
android:id="@+id/expiration_year"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minHeight="48dp"
android:width="50sp"
android:maxLength="2"
android:gravity="center_horizontal"
android:imeOptions="actionNext"
android:inputType="number"
android:hint="@string/autofill_expiration_date_year_hint" />
</LinearLayout>
<!-- TODO(crbug.com/40600572): Fix and remove lint ignore -->
<EditText
tools:ignore="Autofill"
android:id="@+id/card_unmask_input"
android:importantForAutofill="no"
android:inputType="number"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_marginStart="16dp"
android:minHeight="48dp"
android:ems="5"
android:imeOptions="actionDone"
android:imeActionLabel="@string/autofill_save_card_prompt_confirm"
android:hint="@string/card_unmask_input_hint" />
<ImageView
android:id="@+id/cvc_hint_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="8dp"
android:layout_marginEnd="16dp"
tools:ignore="contentDescription" />
<TextView
android:id="@+id/new_card_link"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.TextMedium.Link"
android:text="@string/autofill_card_unmask_new_card_link"
android:visibility="gone" />
</LinearLayout>
<TextView
android:id="@+id/error_message"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginEnd="24dp"
android:gravity="start"
android:textAppearance="@style/TextAppearance.AutofillCardErrorMessage"
android:visibility="gone" />
<CheckBox
android:id="@+id/use_screenlock_checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:layout_marginTop="16dp"
android:layout_marginStart="17dp"
android:layout_marginEnd="10dp"
android:enabled="true"
android:textAppearance="@style/TextAppearance.AutofillCardCheckBoxText"
android:text="@string/autofill_card_unmask_prompt_enable_fido_auth_checkbox" />
</LinearLayout>
<LinearLayout
android:id="@+id/verification_overlay"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/controls_container"
android:layout_alignBottom="@+id/controls_container"
android:layout_alignStart="@+id/controls_container"
android:layout_alignEnd="@+id/controls_container"
android:orientation="vertical"
android:gravity="center"
android:visibility="gone">
<ProgressBar
android:id="@+id/verification_progress_bar"
android:layout_width="@dimen/autofill_dialog_progress_bar_size"
android:layout_height="@dimen/autofill_dialog_progress_bar_size"
android:layout_marginBottom="8dp"
android:layout_marginTop="16dp"
android:visibility="gone" />
<ImageView
android:id="@+id/verification_success"
android:layout_width="@dimen/autofill_dialog_progress_bar_size"
android:layout_height="@dimen/autofill_dialog_progress_bar_size"
android:layout_marginBottom="8dp"
android:layout_marginTop="16dp"
android:src="@drawable/checkmark_blue"
android:visibility="gone"
android:importantForAccessibility="no" />
<TextView
android:id="@+id/verification_message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.TextMediumThick.Accent1" />
</LinearLayout>
</RelativeLayout>
</ScrollView>
</LinearLayout>