<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2018 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="36dp"
android:gravity="center_vertical">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/cc_name"
android:labelFor="@+id/cc_name_edit"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content">
<!-- TODO(crbug.com/40600572): Fix and remove lint ignore -->
<EditText
tools:ignore="Autofill,LabelFor"
android:id="@+id/cc_name_edit"
android:hint="@string/autofill_card_holder_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:imeOptions="actionDone"
android:imeActionLabel="@string/autofill_fix_flow_prompt_save_card_label"
android:inputType="textCapWords"/>
</com.google.android.material.textfield.TextInputLayout>
<ImageView
android:id="@+id/cc_name_tooltip_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:src="@drawable/btn_info"
android:layout_gravity="center"
android:contentDescription="@string/learn_more" />
</LinearLayout>