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<androidx.cardview.widget.CardView
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:id="@+id/privacy_dialog_item_card"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content"
23    android:layout_marginTop="4dp"
24    android:layout_marginBottom="4dp"
25    android:foreground="?android:attr/selectableItemBackground"
26    app:cardCornerRadius="28dp"
27    app:cardElevation="0dp"
28    app:cardBackgroundColor="?androidprv:attr/materialColorSurfaceBright">
29    <LinearLayout
30        android:orientation="vertical"
31        android:layout_width="match_parent"
32        android:layout_height="wrap_content">
33        <LinearLayout
34            android:id="@+id/privacy_dialog_item_header"
35            android:orientation="horizontal"
36            android:layout_width="match_parent"
37            android:layout_height="wrap_content"
38            android:paddingTop="20dp"
39            android:paddingBottom="20dp"
40            android:paddingStart="24dp"
41            android:paddingEnd="24dp">
42            <ImageView
43                android:id="@+id/privacy_dialog_item_header_icon"
44                android:layout_width="wrap_content"
45                android:layout_height="match_parent"
46                android:layout_centerVertical="true"
47                android:importantForAccessibility="no" />
48            <LinearLayout
49                android:orientation="vertical"
50                android:layout_width="0dp"
51                android:layout_weight="1"
52                android:layout_height="match_parent"
53                android:layout_marginStart="16dp"
54                android:layout_marginEnd="16dp"
55                android:layout_centerVertical="true">
56                <TextView
57                    android:id="@+id/privacy_dialog_item_header_title"
58                    android:layout_width="match_parent"
59                    android:layout_height="wrap_content"
60                    android:layout_marginBottom="2dp"
61                    android:hyphenationFrequency="normalFast"
62                    android:textAlignment="viewStart"
63                    android:textAppearance="@style/TextAppearance.PrivacyDialog.Item.Title" />
64                <TextView
65                    android:id="@+id/privacy_dialog_item_header_summary"
66                    android:layout_width="match_parent"
67                    android:layout_height="wrap_content"
68                    android:textAlignment="viewStart"
69                    android:textAppearance="@style/TextAppearance.PrivacyDialog.Item.Summary" />
70            </LinearLayout>
71            <ImageView
72                android:id="@+id/privacy_dialog_item_header_expand_toggle"
73                android:layout_width="wrap_content"
74                android:layout_height="match_parent"
75                android:layout_centerVertical="true"
76                android:visibility="gone" />
77        </LinearLayout>
78        <LinearLayout
79            android:id="@+id/privacy_dialog_item_header_expanded_layout"
80            android:orientation="vertical"
81            android:layout_width="match_parent"
82            android:layout_height="wrap_content"
83            android:paddingBottom="16dp"
84            android:paddingStart="24dp"
85            android:paddingEnd="24dp"
86            android:visibility="gone">
87        </LinearLayout>
88    </LinearLayout>
89</androidx.cardview.widget.CardView>