1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2015 The CyanogenMod Project
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
8 http://www.apache.org/licenses/LICENSE-2.0
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.
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">
23 android:layout_width="match_parent"
24 android:layout_height="0dip"
25 android:layout_weight="1">
28 android:layout_width="match_parent"
29 android:layout_height="wrap_content"
30 android:orientation="vertical">
32 <!-- top section "Personal data & apps" -->
34 android:layout_width="match_parent"
35 android:layout_height="wrap_content"
36 android:gravity="center_vertical"
37 android:minHeight="?android:attr/listPreferredItemHeight"
38 android:orientation="vertical"
39 android:paddingBottom="16dp"
40 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
41 android:paddingStart="?android:attr/listPreferredItemPaddingStart"
42 android:paddingTop="16dp">
45 android:id="@+id/title"
46 android:layout_width="match_parent"
47 android:layout_height="wrap_content"
48 android:text="@string/factory_reset_instructions_title"
49 android:textAppearance="?android:attr/textAppearanceListItem" />
52 android:id="@+id/summary"
53 android:layout_width="match_parent"
54 android:layout_height="wrap_content"
55 android:text="@string/factory_reset_instructions_summary"
56 android:textAppearance="?android:attr/textAppearanceListItemSecondary"
57 android:textColor="?android:attr/textColorSecondary" />
62 style="@style/SolidSettingSeparator"
63 android:layout_marginEnd="0dp"
64 android:layout_marginStart="0dp" />
67 android:layout_width="match_parent"
68 android:layout_height="?android:attr/listPreferredItemHeight"
69 android:gravity="center_vertical"
70 android:orientation="vertical"
71 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
72 android:paddingStart="?android:attr/listPreferredItemPaddingStart"
73 android:text="@string/factory_reset_personal_content"
74 android:textAppearance="@style/TextAppearance.CategoryTitle" />
76 <!-- erase stored content -->
78 android:id="@+id/erase_internal_container"
79 android:layout_width="match_parent"
80 android:layout_height="wrap_content"
81 android:clickable="true"
82 android:focusable="true"
83 android:orientation="horizontal"
84 android:paddingBottom="8dp"
85 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
86 android:paddingStart="?android:attr/listPreferredItemPaddingStart">
89 android:id="@+id/erase_internal"
90 android:layout_width="wrap_content"
91 android:layout_height="wrap_content"
92 android:layout_gravity="top"
93 android:clickable="false"
94 android:duplicateParentState="true"
95 android:focusable="false"
96 android:padding="3dp" />
99 android:layout_width="match_parent"
100 android:layout_height="wrap_content"
101 android:layout_gravity="center_vertical"
102 android:layout_marginStart="16dp"
103 android:duplicateParentState="true"
104 android:orientation="vertical">
107 android:id="@+id/erase_storage_checkbox_title"
108 android:layout_width="wrap_content"
109 android:layout_height="wrap_content"
110 android:duplicateParentState="true"
111 android:text="@string/factory_reset_erase_stored_content"
112 android:textAppearance="?android:attr/textAppearanceListItem"
113 android:textStyle="bold" />
116 android:id="@+id/erase_storage_checkbox_description"
117 android:layout_width="wrap_content"
118 android:layout_height="wrap_content"
119 android:duplicateParentState="true"
120 android:text="@string/factory_reset_erase_stored_content_summary"
121 android:textAppearance="?android:attr/textAppearanceListItemSecondary"
122 android:textColor="?android:attr/textColorSecondary" />
126 <!-- format sd card -->
128 android:id="@+id/erase_external_container"
129 android:layout_width="match_parent"
130 android:layout_height="wrap_content"
131 android:clickable="true"
132 android:focusable="true"
133 android:orientation="horizontal"
134 android:paddingBottom="8dp"
135 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
136 android:paddingStart="?android:attr/listPreferredItemPaddingStart"
137 android:paddingTop="8dp">
140 android:id="@+id/erase_external"
141 android:layout_width="wrap_content"
142 android:layout_height="wrap_content"
143 android:layout_gravity="top"
144 android:clickable="false"
145 android:duplicateParentState="true"
146 android:focusable="false"
147 android:padding="3dp" />
150 android:layout_width="match_parent"
151 android:layout_height="wrap_content"
152 android:layout_gravity="center_vertical"
153 android:layout_marginStart="16dp"
154 android:duplicateParentState="true"
155 android:orientation="vertical">
158 android:id="@+id/erase_sdcard_checkbox_title"
159 android:layout_width="wrap_content"
160 android:layout_height="wrap_content"
161 android:duplicateParentState="true"
162 android:text="@string/factory_reset_erase_sd_card"
163 android:textAppearance="?android:attr/textAppearanceListItem"
164 android:textStyle="bold" />
167 android:id="@+id/erase_sdcard_checkbox_description"
168 android:layout_width="wrap_content"
169 android:layout_height="wrap_content"
170 android:duplicateParentState="true"
171 android:text="@string/factory_reset_erase_sd_card_summary"
172 android:textAppearance="?android:attr/textAppearanceListItemSecondary"
173 android:textColor="?android:attr/textColorSecondary" />
179 <View style="@style/SolidSettingSeparator" />
182 android:id="@+id/initiate_master_clear"
183 style="?android:attr/borderlessButtonStyle"
184 android:layout_width="wrap_content"
185 android:layout_height="wrap_content"
186 android:layout_gravity="right"
187 android:layout_marginBottom="8dp"
188 android:layout_marginEnd="12dp"
189 android:layout_marginStart="8dp"
190 android:layout_marginTop="8dp"
191 android:gravity="center"
192 android:padding="10dp"
193 android:text="@string/master_clear_button_text"
194 android:textColor="@color/factory_reset_color"
195 android:textSize="14sp" />