1<!--
2  ~ Copyright (C) 2022 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:app="http://schemas.android.com/apk/res-auto"
19    android:id="@+id/parent_card_view"
20    style="@style/SafetyCenterIndicatorCardView">
21    <LinearLayout
22        android:orientation="vertical"
23        android:layout_width="match_parent"
24        android:layout_height="wrap_content"
25        android:id="@+id/full_card"
26        style="@style/SafetyCenterIndicatorForeground">
27        <androidx.constraintlayout.widget.ConstraintLayout
28            android:id="@+id/indicator_layout"
29            android:layout_width="match_parent"
30            android:layout_height="wrap_content"
31            style="@style/SafetyCenterIndicatorForeground">
32            <ImageView
33                android:id="@+id/indicator_icon"
34                android:importantForAccessibility="no"
35                style="@style/SafetyCenterIndicatorImageView"
36                app:layout_constraintTop_toTopOf="parent"
37                app:layout_constraintBottom_toBottomOf="parent"
38                app:layout_constraintStart_toStartOf="parent" />
39            <TextView
40                android:id="@+id/indicator_title"
41                app:layout_constraintStart_toEndOf="@id/indicator_icon"
42                app:layout_constraintTop_toTopOf="parent"
43                app:layout_constraintEnd_toEndOf="parent"
44                style="@style/SafetyCenterIndicatorTitleText" />
45            <TextView
46                android:id="@+id/indicator_label"
47                app:layout_constraintTop_toBottomOf="@id/indicator_title"
48                app:layout_constraintStart_toStartOf="@id/indicator_title"
49                app:layout_constraintBottom_toBottomOf="parent"
50                app:layout_constraintEnd_toStartOf="@id/expand_view"
51                style="@style/SafetyCenterIndicatorLabelText" />
52            <ImageView
53                android:id="@+id/expand_view"
54                app:layout_constraintTop_toTopOf="parent"
55                app:layout_constraintEnd_toEndOf="parent"
56                app:layout_constraintBottom_toBottomOf="parent"
57                style="@style/SafetyCenterIndicatorExpandView" />
58        </androidx.constraintlayout.widget.ConstraintLayout>
59        <androidx.constraintlayout.widget.ConstraintLayout
60            android:id="@+id/expanded_layout"
61            android:layout_width="match_parent"
62            android:layout_height="wrap_content"
63            android:visibility="gone"
64            style="@style/SafetyCenterIndicatorForeground">
65            <com.google.android.material.button.MaterialButton
66                android:id="@+id/primary_button"
67                style="@style/SafetyCenterIndicatorActionButton"
68                app:layout_constraintStart_toStartOf="parent"
69                app:layout_constraintEnd_toEndOf="parent" />
70            <com.google.android.material.button.MaterialButton
71                android:id="@+id/secondary_button"
72                app:layout_constraintTop_toBottomOf="@id/primary_button"
73                app:layout_constraintStart_toStartOf="parent"
74                app:layout_constraintEnd_toEndOf="parent"
75                app:layout_constraintBottom_toBottomOf="parent"
76                style="@style/SafetyCenterIndicatorSecondaryActionButton" />
77        </androidx.constraintlayout.widget.ConstraintLayout>
78    </LinearLayout>
79</androidx.cardview.widget.CardView>
80