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