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