1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2010 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<com.google.android.setupdesign.GlifLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:id="@+id/setup_wizard_layout"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent"
23    android:orientation="vertical"
24    android:theme="@style/GlifV3Theme.Footer"
25    android:icon="@drawable/ic_delete_accent"
26    app:sucHeaderText="@string/master_clear_title">
27
28    <ScrollView
29        android:id="@+id/master_clear_scrollview"
30        android:layout_width="match_parent"
31        android:layout_height="match_parent"
32        android:layout_marginStart="@dimen/reset_master_clear_margin_start"
33        android:layout_marginEnd="@dimen/reset_master_clear_margin_end">
34
35        <LinearLayout
36            android:id="@+id/master_clear_container"
37            style="@style/SudContentFrame"
38            android:layout_width="match_parent"
39            android:layout_height="wrap_content"
40            android:orientation="vertical">
41
42            <TextView
43                style="@style/TextAppearance.SudGlifItemSummary"
44                android:id="@+id/sud_layout_description"
45                android:layout_width="match_parent"
46                android:layout_height="wrap_content"
47                android:text="@string/master_clear_desc"/>
48            <TextView
49                android:id="@+id/also_erases_external"
50                style="@style/TextAppearance.SudGlifItemSummary"
51                android:layout_width="match_parent"
52                android:layout_height="wrap_content"
53                android:visibility="gone"
54                android:text="@string/master_clear_desc_also_erases_external"/>
55            <TextView
56                android:id="@+id/also_erases_esim"
57                style="@style/TextAppearance.SudGlifItemSummary"
58                android:layout_width="match_parent"
59                android:layout_height="wrap_content"
60                android:visibility="gone"
61                android:text="@string/master_clear_desc_also_erases_esim"/>
62            <TextView
63                android:id="@+id/accounts_label"
64                style="@style/TextAppearance.SudGlifItemSummary"
65                android:layout_width="match_parent"
66                android:layout_height="wrap_content"
67                android:visibility="gone"
68                android:text="@string/master_clear_accounts"/>
69            <LinearLayout
70                android:id="@+id/accounts"
71                android:layout_width="wrap_content"
72                android:layout_height="wrap_content"
73                android:orientation="vertical"
74                android:visibility="gone">
75                <!-- Do not add any children here as they will be removed in the MasterClear.java
76                    code. A list of accounts will be inserted programmatically. -->
77            </LinearLayout>
78            <TextView
79                android:id="@+id/other_users_present"
80                style="@style/TextAppearance.SudGlifItemSummary"
81                android:layout_width="match_parent"
82                android:layout_height="wrap_content"
83                android:visibility="gone"
84                android:text="@string/master_clear_other_users_present"/>
85            <TextView
86                android:id="@+id/no_cancel_mobile_plan"
87                style="@style/TextAppearance.SudGlifItemSummary"
88                android:layout_width="match_parent"
89                android:layout_height="wrap_content"
90                android:visibility="gone"
91                android:text="@string/master_clear_desc_no_cancel_mobile_plan"/>
92            <TextView
93                android:id="@+id/erase_external_option_text"
94                style="@style/TextAppearance.SudGlifItemSummary"
95                android:layout_width="match_parent"
96                android:layout_height="wrap_content"
97                android:text="@string/master_clear_desc_erase_external_storage"/>
98            <LinearLayout
99                android:id="@+id/erase_external_container"
100                android:layout_width="match_parent"
101                android:layout_height="wrap_content"
102                android:orientation="horizontal"
103                android:focusable="true"
104                android:clickable="true">
105                <CheckBox
106                    android:id="@+id/erase_external"
107                    style="@style/SudCheckBox"
108                    android:layout_width="wrap_content"
109                    android:layout_height="wrap_content"
110                    android:layout_gravity="center_vertical"
111                    android:focusable="false"
112                    android:clickable="false"
113                    android:duplicateParentState="true"/>
114                <LinearLayout
115                    android:layout_width="match_parent"
116                    android:layout_height="wrap_content"
117                    android:layout_gravity="center_vertical"
118                    android:orientation="vertical">
119                    <TextView
120                        style="@style/TextAppearance.SudGlifItemTitle"
121                        android:layout_width="wrap_content"
122                        android:layout_height="wrap_content"
123                        android:text="@string/erase_external_storage"/>
124                    <TextView
125                        style="@style/TextAppearance.SudGlifItemSummary"
126                        android:layout_width="wrap_content"
127                        android:layout_height="wrap_content"
128                        android:text="@string/erase_external_storage_description"/>
129                </LinearLayout>
130            </LinearLayout>
131
132            <include layout="@layout/reset_esim_checkbox"/>
133
134        </LinearLayout>
135    </ScrollView>
136</com.google.android.setupdesign.GlifLayout>
137