OSDN Git Service

Merge changes from topic "am-b95e3cad-9610-4d9b-96a8-a82f585400e6" into oc-dev am...
[android-x86/packages-apps-Settings.git] / res / layout / master_clear.xml
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/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="8dp"
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="12dp"
108                         android:textSize="18sp"
109                         android:text="@string/erase_external_storage" />
110                     <TextView
111                         android:layout_width="wrap_content"
112                         android:layout_height="wrap_content"
113                         android:paddingTop="4sp"
114                         android:textSize="14sp"
115                         android:text="@string/erase_external_storage_description" />
116                 </LinearLayout>
117             </LinearLayout>
118         </LinearLayout>
119     </ScrollView>
120     <Button
121             android:id="@+id/initiate_master_clear"
122             android:layout_gravity="center_horizontal"
123             android:layout_marginTop="20dip"
124             android:layout_marginBottom="12dip"
125             android:layout_width="wrap_content"
126             android:layout_height="wrap_content"
127             android:text="@string/master_clear_button_text"
128             android:gravity="center" />
129
130 </LinearLayout>