1<!--
2  ~ Copyright (C) 2023 The Android Open Source Project
3  ~
4  ~ Licensed under the Apache License, Version 2.0 (the "License");
5  ~ you may not use this file except in compliance with the License.
6  ~ You may obtain a copy of the License at
7  ~
8  ~      http://www.apache.org/licenses/LICENSE-2.0
9  ~
10  ~ Unless required by applicable law or agreed to in writing, software
11  ~ distributed under the License is distributed on an "AS IS" BASIS,
12  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  ~ See the License for the specific language governing permissions and
14  ~ limitations under the License.
15  -->
16<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
17    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
18    xmlns:app="http://schemas.android.com/apk/res-auto"
19                android:id="@android:id/content"
20                android:layout_width="wrap_content"
21                android:layout_height="wrap_content"
22                android:minHeight="@dimen/dropdown_touch_target_min_height"
23                android:elevation="3dp">
24
25        <LinearLayout
26            android:id="@+id/credential_card"
27            android:layout_width="wrap_content"
28            android:layout_height="wrap_content"
29            android:orientation="horizontal">
30
31                <ImageView
32                    android:id="@android:id/icon1"
33                    android:layout_width="wrap_content"
34                    android:layout_height="wrap_content"
35                    android:layout_gravity="center"
36                    android:layout_alignParentStart="true"
37                    android:paddingStart="@dimen/autofill_view_left_padding"
38                    app:tint="?androidprv:attr/materialColorOnSurface"
39                    android:background="@null"/>
40
41                <LinearLayout
42                    android:id="@+id/text_container"
43                    android:layout_width="@dimen/autofill_dropdown_textview_max_width"
44                    android:layout_height="wrap_content"
45                    android:paddingStart="@dimen/autofill_view_left_padding"
46                    android:paddingEnd="@dimen/autofill_view_right_padding"
47                    android:paddingTop="@dimen/autofill_view_top_padding"
48                    android:paddingBottom="@dimen/autofill_view_bottom_padding"
49                    android:textDirection="locale"
50                    android:orientation="vertical">
51
52                        <TextView
53                            android:id="@android:id/text1"
54                            android:layout_width="wrap_content"
55                            android:layout_height="wrap_content"
56                            android:textColor="?androidprv:attr/materialColorOnSurface"
57                            android:textDirection="locale"
58                            style="@style/autofill.TextTitle"/>
59
60                        <TextView
61                            android:id="@android:id/text2"
62                            android:layout_width="wrap_content"
63                            android:layout_height="wrap_content"
64                            android:textColor="?androidprv:attr/materialColorOnSurfaceVariant"
65                            android:textDirection="locale"
66                            style="@style/autofill.TextSubtitle"/>
67
68                </LinearLayout>
69
70        </LinearLayout>
71
72</RelativeLayout>
73