• 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
23    <ScrollView
24            android:layout_width="match_parent"
25            android:layout_height="0dip"
26            android:layout_marginStart="12dp"
27            android:layout_marginEnd="12dp"
28            android:layout_marginTop="12dp"
29            android:layout_weight="1">
30        <LinearLayout android:id="@+id/master_clear_container"
31                android:layout_width="match_parent"
32                android:layout_height="wrap_content"
33                android:orientation="vertical">
34            <TextView
35                android:layout_width="match_parent"
36                android:layout_height="wrap_content"
37                android:includeFontPadding="false"
38                android:textSize="18sp"
39                android:text="@string/master_clear_desc" />
40            <TextView android:id="@+id/also_erases_external"
41                android:layout_width="match_parent"
42                android:layout_height="wrap_content"
43                android:includeFontPadding="false"
44                android:visibility="gone"
45                android:textSize="18sp"
46                android:text="@string/master_clear_desc_also_erases_external" />
47            <TextView android:id="@+id/accounts_label"
48                android:layout_width="match_parent"
49                android:layout_height="wrap_content"
50                android:visibility="gone"
51                android:textSize="18sp"
52                android:text="@string/master_clear_accounts" />
53            <LinearLayout android:id="@+id/accounts"
54                    android:layout_width="wrap_content"
55                    android:layout_height="wrap_content"
56                    android:orientation="vertical"
57                    android:visibility="gone">
58                <!-- Do not add any children here as they will be removed in the MasterClear.java
59                    code. A list of accounts will be inserted programmatically. -->
60            </LinearLayout>
61            <TextView android:id="@+id/other_users_present"
62                android:layout_width="match_parent"
63                android:layout_height="wrap_content"
64                android:visibility="gone"
65                android:textSize="18sp"
66                android:text="@string/master_clear_other_users_present" />
67            <TextView android:id="@+id/erase_external_option_text"
68                android:layout_width="match_parent"
69                android:layout_height="wrap_content"
70                android:textSize="18sp"
71                android:text="@string/master_clear_desc_erase_external_storage" />
72            <LinearLayout android:id="@+id/erase_external_container"
73                    android:layout_width="match_parent"
74                    android:layout_height="wrap_content"
75                    android:orientation="horizontal"
76                    android:focusable="true"
77                    android:clickable="true">
78                <CheckBox android:id="@+id/erase_external"
79                        android:layout_width="wrap_content"
80                        android:layout_height="wrap_content"
81                        android:layout_gravity="center_vertical"
82                        android:paddingEnd="8dp"
83                        android:focusable="false"
84                        android:clickable="false"
85                        android:duplicateParentState="true" />
86                <LinearLayout android:layout_width="match_parent"
87                        android:layout_height="wrap_content"
88                        android:layout_gravity="center_vertical"
89                        android:orientation="vertical">
90                    <TextView
91                        android:layout_width="wrap_content"
92                        android:layout_height="wrap_content"
93                        android:paddingTop="12dp"
94                        android:textSize="18sp"
95                        android:text="@string/erase_external_storage" />
96                    <TextView
97                        android:layout_width="wrap_content"
98                        android:layout_height="wrap_content"
99                        android:paddingTop="4sp"
100                        android:textSize="14sp"
101                        android:text="@string/erase_external_storage_description" />
102                </LinearLayout>
103            </LinearLayout>
104        </LinearLayout>
105    </ScrollView>
106    <Button
107            android:id="@+id/initiate_master_clear"
108            android:layout_gravity="center_horizontal"
109            android:layout_marginTop="20dip"
110            android:layout_marginBottom="12dip"
111            android:layout_width="wrap_content"
112            android:layout_height="wrap_content"
113            android:text="@string/master_clear_button_text"
114            android:gravity="center" />
115
116</LinearLayout>
117