• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18    android:layout_width="match_parent"
19    android:layout_height="match_parent"
20    android:orientation="vertical">
21
22    <ScrollView
23            android:id="@+id/master_clear_scrollview"
24            android:layout_width="match_parent"
25            android:layout_height="0dip"
26            android:layout_marginStart="@dimen/preference_no_icon_padding_start"
27            android:layout_marginEnd="12dp"
28            android:layout_marginTop="12dp"
29            android:layout_weight="1">
30        <LinearLayout
31            android:id="@+id/master_clear_container"
32            android:layout_width="match_parent"
33            android:layout_height="wrap_content"
34            android:orientation="vertical">
35            <TextView
36                android:layout_width="match_parent"
37                android:layout_height="wrap_content"
38                android:includeFontPadding="false"
39                android:textSize="18sp"
40                android:text="@string/master_clear_desc" />
41            <TextView android:id="@+id/also_erases_external"
42                android:layout_width="match_parent"
43                android:layout_height="wrap_content"
44                android:includeFontPadding="false"
45                android:visibility="gone"
46                android:textSize="18sp"
47                android:text="@string/master_clear_desc_also_erases_external" />
48            <TextView android:id="@+id/also_erases_esim"
49                android:layout_width="match_parent"
50                android:layout_height="wrap_content"
51                android:includeFontPadding="false"
52                android:visibility="gone"
53                android:textSize="18sp"
54                android:text="@string/master_clear_desc_also_erases_esim" />
55            <TextView android:id="@+id/accounts_label"
56                android:layout_width="match_parent"
57                android:layout_height="wrap_content"
58                android:visibility="gone"
59                android:textSize="18sp"
60                android:text="@string/master_clear_accounts" />
61            <LinearLayout android:id="@+id/accounts"
62                    android:layout_width="wrap_content"
63                    android:layout_height="wrap_content"
64                    android:orientation="vertical"
65                    android:visibility="gone">
66                <!-- Do not add any children here as they will be removed in the MasterClear.java
67                    code. A list of accounts will be inserted programmatically. -->
68            </LinearLayout>
69            <TextView android:id="@+id/other_users_present"
70                android:layout_width="match_parent"
71                android:layout_height="wrap_content"
72                android:visibility="gone"
73                android:textSize="18sp"
74                android:text="@string/master_clear_other_users_present" />
75            <TextView android:id="@+id/no_cancel_mobile_plan"
76                android:layout_width="match_parent"
77                android:layout_height="wrap_content"
78                android:visibility="gone"
79                android:textSize="18sp"
80                android:text="@string/master_clear_desc_no_cancel_mobile_plan" />
81            <TextView android:id="@+id/erase_external_option_text"
82                android:layout_width="match_parent"
83                android:layout_height="wrap_content"
84                android:textSize="18sp"
85                android:text="@string/master_clear_desc_erase_external_storage" />
86            <LinearLayout android:id="@+id/erase_external_container"
87                    android:layout_width="match_parent"
88                    android:layout_height="wrap_content"
89                    android:orientation="horizontal"
90                    android:focusable="true"
91                    android:clickable="true">
92                <CheckBox android:id="@+id/erase_external"
93                        android:layout_width="wrap_content"
94                        android:layout_height="wrap_content"
95                        android:layout_gravity="center_vertical"
96                        android:paddingEnd="@dimen/reset_checkbox_padding_end"
97                        android:focusable="false"
98                        android:clickable="false"
99                        android:duplicateParentState="true" />
100                <LinearLayout android:layout_width="match_parent"
101                        android:layout_height="wrap_content"
102                        android:layout_gravity="center_vertical"
103                        android:orientation="vertical">
104                    <TextView
105                        android:layout_width="wrap_content"
106                        android:layout_height="wrap_content"
107                        android:paddingTop="@dimen/reset_checkbox_title_padding_top"
108                        android:textSize="@dimen/reset_checkbox_title_text_size"
109                        android:text="@string/erase_external_storage" />
110                    <TextView
111                        android:layout_width="wrap_content"
112                        android:layout_height="wrap_content"
113                        android:paddingTop="@dimen/reset_checkbox_summary_padding_top"
114                        android:textSize="@dimen/reset_checkbox_summary_text_size"
115                        android:text="@string/erase_external_storage_description" />
116                </LinearLayout>
117            </LinearLayout>
118            <include layout="@layout/reset_esim_checkbox"
119                 android:layout_marginTop="40dp"
120                 android:id="@+id/erase_esim_container"
121                 android:layout_width="match_parent"
122                 android:layout_height="wrap_content" />
123        </LinearLayout>
124    </ScrollView>
125    <Button
126            android:id="@+id/initiate_master_clear"
127            android:layout_gravity="center_horizontal"
128            android:layout_marginTop="20dip"
129            android:layout_marginBottom="12dip"
130            android:layout_width="wrap_content"
131            android:layout_height="wrap_content"
132            android:text="@string/master_clear_button_text"
133            android:gravity="center" />
134
135</LinearLayout>
136