• 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<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:icon="@drawable/ic_delete_accent"
25    app:sucHeaderText="@string/main_clear_title">
26
27    <ScrollView
28        android:id="@+id/main_clear_scrollview"
29        android:layout_width="match_parent"
30        android:layout_height="match_parent">
31
32        <LinearLayout
33            android:id="@+id/main_clear_container"
34            style="@style/SudContentFrame"
35            android:layout_width="match_parent"
36            android:layout_height="wrap_content"
37            android:layout_marginTop="16dp"
38            android:orientation="vertical">
39
40            <TextView
41                style="@style/TextAppearance.PreferenceTitle.SettingsLib"
42                android:id="@+id/sud_layout_description"
43                android:layout_width="match_parent"
44                android:layout_height="wrap_content"
45                android:text="@string/main_clear_desc"/>
46            <TextView
47                android:id="@+id/also_erases_external"
48                style="@style/TextAppearance.PreferenceTitle.SettingsLib"
49                android:layout_width="match_parent"
50                android:layout_height="wrap_content"
51                android:visibility="gone"
52                android:text="@string/main_clear_desc_also_erases_external"/>
53            <TextView
54                android:id="@+id/also_erases_esim"
55                style="@style/TextAppearance.PreferenceTitle.SettingsLib"
56                android:layout_width="match_parent"
57                android:layout_height="wrap_content"
58                android:visibility="gone"
59                android:text="@string/main_clear_desc_also_erases_esim"/>
60            <TextView
61                android:id="@+id/accounts_label"
62                style="@style/TextAppearance.PreferenceTitle.SettingsLib"
63                android:layout_width="match_parent"
64                android:layout_height="wrap_content"
65                android:visibility="gone"
66                android:text="@string/main_clear_accounts"/>
67            <LinearLayout
68                android:id="@+id/accounts"
69                android:layout_width="wrap_content"
70                android:layout_height="wrap_content"
71                android:orientation="vertical"
72                android:visibility="gone">
73                <!-- Do not add any children here as they will be removed in the MainClear.java
74                    code. A list of accounts will be inserted programmatically. -->
75            </LinearLayout>
76            <TextView
77                android:id="@+id/other_users_present"
78                style="@style/TextAppearance.PreferenceTitle.SettingsLib"
79                android:layout_width="match_parent"
80                android:layout_height="wrap_content"
81                android:visibility="gone"
82                android:text="@string/main_clear_other_users_present"/>
83            <TextView
84                android:id="@+id/no_cancel_mobile_plan"
85                style="@style/TextAppearance.PreferenceTitle.SettingsLib"
86                android:layout_width="match_parent"
87                android:layout_height="wrap_content"
88                android:visibility="gone"
89                android:text="@string/main_clear_desc_no_cancel_mobile_plan"/>
90            <TextView
91                android:id="@+id/erase_external_option_text"
92                style="@style/TextAppearance.PreferenceTitle.SettingsLib"
93                android:layout_width="match_parent"
94                android:layout_height="wrap_content"
95                android:text="@string/main_clear_desc_erase_external_storage"/>
96            <LinearLayout
97                android:id="@+id/erase_external_container"
98                android:layout_width="match_parent"
99                android:layout_height="wrap_content"
100                android:orientation="horizontal"
101                android:focusable="true"
102                android:clickable="true">
103                <CheckBox
104                    android:id="@+id/erase_external"
105                    style="@style/SudCheckBox"
106                    android:layout_width="wrap_content"
107                    android:layout_height="wrap_content"
108                    android:layout_gravity="center_vertical"
109                    android:focusable="false"
110                    android:clickable="false"
111                    android:duplicateParentState="true"/>
112                <LinearLayout
113                    android:layout_width="match_parent"
114                    android:layout_height="wrap_content"
115                    android:layout_gravity="center_vertical"
116                    android:orientation="vertical">
117                    <TextView
118                        style="@style/TextAppearance.PreferenceTitle.SettingsLib"
119                        android:layout_width="wrap_content"
120                        android:layout_height="wrap_content"
121                        android:text="@string/erase_external_storage"/>
122                    <TextView
123                        style="?android:attr/textAppearanceListItemSecondary"
124                        android:layout_width="wrap_content"
125                        android:layout_height="wrap_content"
126                        android:text="@string/erase_external_storage_description"/>
127                </LinearLayout>
128            </LinearLayout>
129
130            <include layout="@layout/reset_esim_checkbox"/>
131
132        </LinearLayout>
133    </ScrollView>
134</com.google.android.setupdesign.GlifLayout>
135