<!--
  ~ Copyright (C) 2023 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
                android:id="@android:id/content"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:minHeight="@dimen/dropdown_touch_target_min_height"
                android:elevation="3dp">

        <LinearLayout
            android:id="@+id/credential_card"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="horizontal">

                <ImageView
                    android:id="@android:id/icon1"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_alignParentStart="true"
                    android:paddingStart="@dimen/autofill_view_left_padding"
                    app:tint="?androidprv:attr/materialColorOnSurface"
                    android:background="@null"/>

                <LinearLayout
                    android:id="@+id/text_container"
                    android:layout_width="@dimen/autofill_dropdown_textview_max_width"
                    android:layout_height="wrap_content"
                    android:paddingStart="@dimen/autofill_view_left_padding"
                    android:paddingEnd="@dimen/autofill_view_right_padding"
                    android:paddingTop="@dimen/autofill_view_top_padding"
                    android:paddingBottom="@dimen/autofill_view_bottom_padding"
                    android:textDirection="locale"
                    android:orientation="vertical">

                        <TextView
                            android:id="@android:id/text1"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:textColor="?androidprv:attr/materialColorOnSurface"
                            android:textDirection="locale"
                            style="@style/autofill.TextTitle"/>

                        <TextView
                            android:id="@android:id/text2"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:textColor="?androidprv:attr/materialColorOnSurfaceVariant"
                            android:textDirection="locale"
                            style="@style/autofill.TextSubtitle"/>

                </LinearLayout>

        </LinearLayout>

</RelativeLayout>
