• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!--
2  ~ Copyright (C) 2021 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
17
18<merge xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    xmlns:tools="http://schemas.android.com/tools"
21    tools:parentTag="androidx.constraintlayout.widget.ConstraintLayout">
22
23    <ImageView
24        android:id="@+id/status_image"
25        android:importantForAccessibility="no"
26        android:src="@drawable/safety_status_info"
27        style="@style/SafetyCenterStatusImage" />
28
29    <LinearLayout
30        android:id="@+id/status_title_and_summary"
31        style="?attr/scStatusTitleAndSummaryContainerStyle">
32
33        <TextSwitcher
34            android:id="@+id/status_title"
35            android:layout_width="wrap_content"
36            android:layout_height="wrap_content"
37            android:inAnimation="@anim/text_switcher_fade_in"
38            android:outAnimation="@anim/text_switcher_fade_out">
39            <TextView
40                android:text="@string/summary_placeholder"
41                style="@style/SafetyCenterStatusTitle" />
42            <TextView
43                android:text="@string/summary_placeholder"
44                style="@style/SafetyCenterStatusTitle" />
45        </TextSwitcher>
46
47
48        <TextSwitcher
49            android:id="@+id/status_summary"
50            android:layout_width="wrap_content"
51            android:layout_height="wrap_content"
52            android:inAnimation="@anim/text_switcher_fade_in"
53            android:outAnimation="@anim/text_switcher_fade_out">
54            <TextView
55                android:text="@string/summary_placeholder"
56                style="@style/SafetyCenterStatusSummary" />
57            <TextView
58                android:text="@string/summary_placeholder"
59                style="@style/SafetyCenterStatusSummary" />
60        </TextSwitcher>
61    </LinearLayout>
62
63    <androidx.constraintlayout.widget.Barrier
64        android:id="@+id/sc_status_buttons_start_barrier"
65        android:layout_width="wrap_content"
66        android:layout_height="wrap_content"
67        app:barrierDirection="start"
68        app:constraint_referenced_ids="review_settings_button,rescan_button" />
69
70    <com.google.android.material.button.MaterialButton
71        android:id="@+id/review_settings_button"
72        android:text="@string/safety_center_review_settings_button"
73        android:visibility="gone"
74        style="?attr/scStatusButtonStyle" />
75
76    <com.google.android.material.button.MaterialButton
77        android:id="@+id/rescan_button"
78        android:text="@string/safety_center_rescan_button"
79        style="?attr/scStatusButtonStyle" />
80</merge>